added sort icons and some comments