remove unused sorting logic