issue #20375: sort priv segment in the client
issue #20375: more complete segments
issue #20375: jshint
Merge remote-tracking branch 'XTUPLE/dev-1-3-6' into 20375
issue #20375: added the algorithm
Merge pull request #461 from shackbarth/20375

issue #20375: re-segmented the priv assignmentboxes