I'm using OKTech's SOAP web services to build an interface between our SIS and Moodle 2.0. When using add_course I define the new course's sortorder to increment off of its course category base. It appears though that this process ignores the provided sortorder and substitutes a value of 0
I'm using OKTech's SOAP web services to build an interface between our university's SIS and Moodle 2.0. My intent is to have the courses ordered by their shortname.
When using add_course I define the new course's sortorder to increment off of its course category base sortoder. It appears though that this process ignores the provided sortorder and substitutes a value of 0. I have confirmed this by enabling query logging in MySql and observing the submitted INSERT statements use 0 instead of the provided sortorder.
Is there a recommended approach to maintaining course sortorder? Adding the courses in reverse order initially is a hack that should work... but it doesn't solve the problem when adding courses at a later point. I have successfully implemented a routine which issues SQL UPDATE statements directly to MySql, but my preference would be to stick to standard api calls.
Any suggestions?