fixed #11 (wrong sorting of items)