This is an online tool for sorting lines using various criteria, e.g. alphabetical, line length, random order etc.

Thanks to other commenters here, there are several better options for getting to TM:

http://textmechanic.biz/

http://textmechanic.com/

http://textmechanic.co/

Thanks, you guys, for posting better links than I had.