https://bugzilla.wikimedia.org/show_bug.cgi?id=31255

--- Comment #11 from Guillermo Burastero <guillermo.burast...@gmail.com> 
2011-11-30 22:29:24 UTC ---
The easiest way to implement a stable sort, that by definition don't alter the
relative previus order of records with same key, is to sort by the key
concateated with the record number (order number).

Excuse my English. My native language is Spanish.

Ex.

I have the table with invisible RecNumber and columns A, B, C

RecN  Col_A Col_B Col_C

And I want to Order by Col_A + Col_B + Col_C

I Order by Col_C + RecN
Then Order by Col_B + RecN'
Then Order by Col_A + RecN''

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to