the following function i used to sort when i had an array with int values. but now i changed the array to double value(to decimal place 2) and its not work