ST3 Support

Fixed regions.sort for python 3 and Sublime Text 3 (beta) compatibility as noted by @Verhaeg.