added sort crafting menu option, fixed order
fixed segfault due to iterator problem