ensure consistent sorting of barclamps

Ensure consistent sorting of barclamps in the web UI: firstly by order number, then by name.  This is a rough backport from 2.0.