role write with sorting.
compare groups