ok so i changed my code to where it only sorts 5 elements and it works but is there any way i can sort the list so i dont have to worry about how many elements are to be sorted