# Integer table

**URL:** <https://www.dynamicsuser.net/t/integer-table/57595>\
**Category:** Developers Forum\
**Created:** [May 7, 2015, 3:48pm UTC](https://www.dynamicsuser.net/t/integer-table/57595 "2015-05-07T15:48:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![PinkyCZ](https://avatars.discourse-cdn.com/v4/letter/p/d2c977/32.png) [@PinkyCZ](https://www.dynamicsuser.net/u/PinkyCZ)\
**Post date:** [May 7, 2015, 3:48pm UTC](https://www.dynamicsuser.net/t/integer-table/57595/1 "2015-05-07T15:48:45Z")

</div>

I|m getting familiar with the Integer virtual table, all seem clear so far. While studying R111 - Customer Top 10 Sales I understand the logic how virtual table is updated first and the integer table used to pick X number of records… What I however do not see is WHERE is the virtual table set to be sorted, so that when in next loop it is iterated through, the top records are picked.

I can see the table is actually inserted with negative values and when Integer table startes to pick pre-calculated results, it is alreday sorted ASCENDING… but see nowhere in the porperties or code that sorting is set.

As the inserting is done when going throug customers, by tehir customer No. one by one, the records must be in the sequence of Customer Nos…so some time later after all inserts are finished theer must be sorting initiated somewhere… yet i see to struggle to find this…

Can anyone enlighten me please? [A]
