package role

import "strings"

type sortableRoles []*Role

func (sr sortableRoles) Len() int           { return len(sr) }
func (sr sortableRoles) Less(i, j int) bool { return strings.Compare(sr[i].ID, sr[j].ID) < 0 }
func (sr sortableRoles) Swap(i, j int)      { sr[i], sr[j] = sr[j], sr[i] }
