On a rare case courses will have duplicate sections those have the same id. Added some code to re-order sections if this is found when moving sections (Merged from MOODLE_15_STABLE)
On a rare case courses will have duplicate sections those have the same id. Added some code to re-order sections if this is found when moving sections (Merged from MOODLE_15_STABLE)

dilawar/moodle