Added commented code for sorting - needs work

I added a sorting method from stackoverflow that works to sort them, but
afterwards, the classes are no longer draggable. I have it commented out
right now in the recycleImage function since it has some issues. There
is probably a better way to do this.