sql: sort on non-selectables
sql: distinct labels self