The sorting by hash works