Do the sort in ruby, rather than redis