You are not logged in.
Pages: 1
Can I request a TSQLTable feature.
It would be really good if one be able to sort using multiple fields in asc/desc order.
Offline
You have the sorting already implemented at TSQLTable level, but for one field.
See TSQLTable.SortFields() method.
BTW, this method is very optimized for speed, since it is the one used at mORMot UI grid level for sorting its content.
Is it really not enough?
Offline
Hi ab,
Yes, I already use sorting by one field index. It is pretty fast.
I use to store arbitrary TSQLRecords (not fully coming from sql database) in TSQLTable and return its json content.
But usually, common data is needed sorted by multiple fields, just like you expect if it is coming from sql-like storage (but in my case it is not).
Offline
I've created a ticket for this feature request.
Offline
We have just added TSQLTable.SortFields() overloaded method, able to sort a TSQLTable row content by multiple fields - implements your feature request.
Includes regression tests.
See http://synopse.info/fossil/info/38cd41ff85
Hope it helps.
Offline
That is great, ab.
Thanks a lot, definitely will help.
Offline
Pages: 1