Your comments

would still like this built into textastic though :)

Excellent!  Definitely a nice workaround for now.  You should probably make two: one for general (as outlined in that tutorial) and another for numeric (sort -g)