Currently I'm implementing an algorithm to return the Farey Series of order n by calling my function with FareySeries(n). This works quite well,for example calling
L = FareySeries(4)
returns
List([0, 1, 1/2, 1/3, 1/4, 2/3, 3/4])
but I need the list to be sorted. Reading the documentation, I thought
listsort(L)
would do the job, but it seems this only works for Integers and Floats (I tested this manually). Is there some built-in function(or parameter) for sorting a list containing mixed integers and fractions or do I have to sort it manually? I don't need code to sort for myself, I just want to use, what has already been implemented; sticking to the basics of coding here.