Thanks for the edge case.
A couple of possible fixes spring to mind:
Things to play with. Thanks.
In reply to Re^3: partition of an array by BrowserUk in thread partition of an array by mostvisited