Pierce McGeough
Pierce McGeough

Reputation: 3086

Sublime Text 2 plugin to sort your functions alphabetically

I am building many functions in my application and now I want to alphabetise them. Is there any function in Sublime Text 2 that will do this automatiaclly. It should change these

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

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

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

Into these

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

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

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

Upvotes: 5

Views: 2336

Answers (1)

Sergey Telshevsky
Sergey Telshevsky

Reputation: 12217

I wonder if you are using PHP, from the syntax you provided it seems you do.

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

Upvotes: 1

Related Questions