revert stable execution sort for performance reasons; use length rather than countDistinct for execution count