Sublime Text 2 plugin to sort your functions alphabetically

I am creating many functions in my application, and now I want them in alphabetical order. Is there any function in Sublime Text 2 that will do this automatically. It should change these

public function login_1()
{
........
}

public function about()
{
........
}

public function close()
{
........
}

In these

public function about()
{
........
}

public function close()
{
........
}

public function login_1()
{
........
}
+4
source share
1 answer

I wonder if you use PHP, from the syntax you provided, it looks like you are doing it.

Here is a plugin for this task, but it looks like it only works with PHP. First, it sorts your methods using the scope, and then by the name of the method.

+1
source

All Articles