Submenu: How do I always display the active page in 1st position?

Similar to this here, minus the shuffle. And the first element is not the first but the open one. So find the open one using findBy(isOpen), exclude from the rest of the items and then prepend.