Removed sort by priority code.
Removed commented debug code in Repeatables.