Sorting A List In Python Without Built In Functional Interfaces In Java