sorting items by step befor pushing to library