[NSM] Add prefix for roles and fill item with sorting data
[NSM] improve sorting
Merge pull request #313 from Maledictus/bug_1501

Bug 1501