Added sort feature for SA, reorganized GUI

Closes #16, #20, #22