FINALLY MADE IT!!! TOOK ME 2 HOURS FOR THE SORT FUNCTION!!