Question types: Ordering

Maintained by Picture of Gordon BatesonGordon Bateson
Ordering question type for Moodle 2.x and Moodle 3.x
3097 sites
75 fans
Current versions available: 2


The ordering question type displays several short sentences in a random order which are to be dragged into the correct sequential order. It was developed for the ordering questions used in the Reader activity module for Moodle 2.x


The question type is required by the Reader activity module for Moodle 2.x


To view details of recent changes made to this plugin, please click on the following link:


Screenshot #0


Picture of Gordon Bateson
Gordon Bateson (Lead maintainer)
Please login to view contributors details and/or to contact them

Comments RSS


  • MD shot of me from his iphone4
    Wed, Feb 12, 2014, 2:27 PM
    'wtyczka' ?
    Can you please add some more explanation and also read through
  • MD shot of me from his iphone4
    Wed, Feb 12, 2014, 2:35 PM
    ah the read me explains it if i look inside, however the read me points to Gordon Bateson's repository.

    Guys, (i've added Gordon here), please let me know how this entry could proceed in your opinions. smile
  • Picture of Gordon Bateson
    Wed, Feb 12, 2014, 3:05 PM
    Hmm, this software is just a clone of one of my repositories.

    I took over maintenance of this software from Tom Robb, who developed this question type for the Reader module ( I intend to make it available via when it is ready and documentation, but it is not ready yet.

    As far as I know the original programmer was Serafim Panov (

    Beata, you are not the owner, programmer or maintainer of this software. Why are you trying to make this software available on
  • Picture of David Mudrák
    Sat, May 17, 2014, 6:01 AM
    Hey guys. Any progress on this? Beata, can you elaborate on your intentions a bit?
  • Picture of Plugins bot
    Mon, May 26, 2014, 5:49 AM
    Thanks for sharing this plugin with the Moodle community. Some formal issues were detected and reported by our automated plugin checker tool. Please review all the plugin checker results and fix the issues mentioned, if possible. These changes are typically pretty easy to make but if you have any questions just let us know. For now, I am going to mark this plugin as needing more work. Once you get these formal issues resolved, please use the link “Schedule this plugin for re-approval” so that the plugin code can be fully reviewed and approved by my human colleagues.
  • Picture of Gordon Bateson
    Mon, May 26, 2014, 8:15 AM
    Aparup, David,
    it seems that Beata is not responding to attempts to our attempts to contact him, so please could you remove Beata as the maintainer of the qtype_ordering plugin, and make the me the maintainer so that I can upload the latest version for review for possible inclusion in the plugins publicly available repository. thanks, Gordon
  • MD shot of me from his iphone4
    Mon, May 26, 2014, 12:12 PM
  • Picture of Gordon Bateson
    Sun, Nov 30, 2014, 1:16 PM
    Dear Aparup,
    I am sure you are very busy, but when you have a moment, please could you review the changes I have made to the ordering question type, and if everything looks satisfactory, please make it public.

    Actually the mod_reader plugin relies on this question type. Please could you advise me on how to make them a set? In the version.php for the Reader module, I have already setup $plugin->dependencies = array('qtype_ordering' => ANY_VERSION);

    bes tregards
  • Picture of David Mudrák
    Wed, Dec 3, 2014, 8:08 PM
    Thanks for your updates Gordon. I noticed that the db/upgrade.php referes to the reader_question_instances table. Do I get it right that the version 2013062800 of this question type required the mod_reader? I am a bit worried about the upgrade paths for the current users of this.

    In the styles.css, the CSS selectors should be more specific to this question type. This is needed in order to break styling of other areas that would accidentally use the same CSS class names. See core question types for good examples.

    Please note that in Moodle, direct usage of the $_SESSION superglobal is discouraged. There are often alternative approaches to achieve the same functionality. If the session usage is really required. you should access it via the $SESSION global.

    I was able to successfully test the functionality of question type. I believe you will be able to provide this plugin enough support for eventual fixes for issues reported by the community. For that, you are cleared to land now. Welcome to the Plugins directory!
  • Picture of Gordon Bateson
    Wed, Dec 3, 2014, 9:14 PM
    Great news. Thank you very much David for all the tremendous work you do for Moodle plugins.

    I have modified the upgrade script to check for the existense of the reader_question_instances table before trying to access it. I have also reduced the scope of the css used by this question type to ".que.ordering". I will work the access to $SESSION in due course.

    Thanks for your support, help nad encouragement !

    best regards
  • Germán and Temudgin
    Wed, Dec 10, 2014, 8:38 AM
    Hi Gordon,
    Congratulations in your new Ordering question type plugin. It works beautifully smile
    I started a Moodle documentation page at Please feel free to add or change as needed.
Please login to post comments