add transaction to sort in order to improve perfermance
Merge pull request #4 from lazing/master

add transaction to sort method to improve perfermance of SQL update