title: Sort functions in source code alphabetically
body: <p>I have a PHP class with a bunch of methods. Currently they are in no particular order. I would (at least initially) like them to be in alphabetical order, so <code>public function a()</code> would come before <code>public function b()</code> and so on.</p>
  
  <p>I'm sure I could write a script to do this but is there an existing program that can do it for me? All I can find is ways to sort individual lines.</p>