now it works with floating numbers, sorted