Revert "Quick sort"

This reverts commit 4a5d9dfed50417094ca25c16e72383720694243c.