davestewart / laravel-sketchpad

An innovative front-end environment for interactive Laravel development
MIT License
296 stars 19 forks source link

Implement @order tag #20

Closed davestewart closed 7 years ago

davestewart commented 7 years ago

Probably most use on controllers, which cannot be ordered due to pathname ordering.

Methods, should be up to the user to re-order the source code.

Currently, is difficult to order, as routes / controllers are a flat array. Would be easiest to first add controllers per folder into a temporary array, order that, then add elements to the main array.

Would be worth tying this into #6 as the whole storage of routes and controllers may need simplifying anyway.