Expose API endpoint to order Legend's entries.

Close #1408.
Fix sort.
Modify test to fix PhantomJS issue.
Fix IE.
Change default comparator.
Merge pull request #1447 from palantir/legend_entry_order

Expose API endpoint to order Legend's entries.