[CHEF-3431] roles view fix

http://tickets.opscode.com/browse/CHEF-3431

Use first element of the array to sort.