Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Switch off automatic sorting in a Table

Former Member
0 Likes
777

Hi everybody,

how is it possible to switch off the automatic sorting function of a database table? I don't want to lose the actuall order in my table.

regards,

Sid

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
536

Sid,

You should not rely on how the database stores data in the table. If you want to achieve some sort order, then you have to implement it by architecting the table that way. For example, you can add updated date and time and then sort by those fields.

If you have some other sorting logic, then you may add a new column to the table and insert a sort number in it.

1 REPLY 1
Read only

Former Member
0 Likes
537

Sid,

You should not rely on how the database stores data in the table. If you want to achieve some sort order, then you have to implement it by architecting the table that way. For example, you can add updated date and time and then sort by those fields.

If you have some other sorting logic, then you may add a new column to the table and insert a sort number in it.