Look at qSort() function