Positioning UI Elements

Throughout Cloud9 you'll see APIs that allow you to sort your items using integers. By using an int to set the position it is possible to determine the approximate position of, for instance an item in a menu without having any knowledge about other plugins that are loaded. In most cases there are no special ranges and thus all plugins are a-like. Simply choose a position that makes sense to you and use it.

These are just some of the places where an index is used to determine the order of elements.

To see what the position numbers are for menus and preferences simply load Cloud9 with ?menus=1 in the url.

1570