Sorting between scratchpad items implemented.