I have a PHP array like:
myarr[1] = "1",
myarr[2] = "1.233",
myarr[3] = "0",
myarr[4] = "2.5"
The values are actually strings, but I want this array to be sorted numerically. The sorting algorithm should respect float values and maintaining index association.