0bb7f79d31
Role sort order was not available in the UI (in JavaScript) due to the use of PHP assoc arrays and JSON encoding/decoding. This patch addresses this by sending the roles in a json array, rather than json object.