JASCIS-80: Move dataproduct priority sort from plugin to AProduct (plugin is used in other places)