Slightly better sort/select