Sorting markers before clamping.  Removed the index in favor of sublist().  Will revert until best plan is decided on during review.
Reverted sublist from last commit