Below is my current code that sorts a list in acesending order:
qsort::[Int]->[Int]
qsort[]=[]
qsort(x:xs)
=qsort[y|y<-xs, y<=x]++[x]++qsort[y|y<-xs,y>x]
How would i modify/create a function that sorts a list such as:
[("Bob",22),("Peter",38),("Charlie",19)]
by the int value