sorting by float attribute