Modified sorters to work on arrays as well
Expanded ordering functions to accept arrays. Also finished ordering for events

Merge branch 'master' of http://github.com/panjiw/Team-Player