Fixing problem with sorting integers.