Ordering via SQL doesn't work, duh - use existing comparison function.

Todo repr() uses str() and shows display_position.