working sort

YOUR COMPARATOR IS WORKING