brute force sort