is there a way to sort the options that we add to a list with g_form.addOption()?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-04-2014 03:11 AM
is there a way to sort the options that we add to a list with g_form.addOption()?
Labels:
- Labels:
-
Service Mapping
16 REPLIES 16

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-05-2014 08:26 AM
You could build an array of the existing options, add yours then use .sort() for the array.
This will give you some guide lines JavaScript Array sort() Method

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-05-2014 08:30 AM