Implement naive ordering