Code:
alias sort {
filter -a @values @sorted sort1
}

alias sort1 {
  if ($1 < $2) return 1
  elseif ($1 > $2) return -1
  else return 0
}


^ Example of what I am doing. The problem is, it is sorting 7.78 above 10.2, etc.

Example:

7.78
5.56
4.43
2.34
10.5
1.02

It is like it has no regard to decimal place. How do I fix this without changing 7.78 to 07.78, etc.

Thanks!