much simpler sorting