Changed the way sorting is done - instead of relying on unique IDs, we now use a 'sortIndex' which is an arbitrary number. This number can be duplicated in multiple UAs, so it is fine tunable.