add sorting function for queue rows, implement in firebase change call

<img src="http://www.reactiongifs.com/wp-content/uploads/2013/06/nodding.gif">