Fixed items jumping around on refresh.

Sorting items stably in the bkg script too.
Simplified sorting.
Merge pull request #5 from kitt-browser/bugfix/items-jump-around-on-refresh

Bugfix/items jump around on refresh