This PR attempts to improve the existing AGSPopup compare and sort. It does so by removing duplicate code and instead passes a sort operator as a function. This yields the same result with one method rather than two. Additionally, this PR removes error throwing, opting instead for the developer to supply the function with valid data.
This PR attempts to improve the existing AGSPopup compare and sort. It does so by removing duplicate code and instead passes a sort operator as a function. This yields the same result with one method rather than two. Additionally, this PR removes error throwing, opting instead for the developer to supply the function with valid data.