I am not an ruby expert at all;). However I need a number to sort it properly. Previously existing code sorted 1, 100, 101 and so on.