Uploaded image for project: 'Moodle app'
  1. Moodle app
  2. MOBILE-2095

Some array sorting isn't calculated right

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 3.3.0
    • 3.2.1
    • Others
    • Hide
      1. In the app, open a message discussion. Check that the messages are ordered from oldest to newest.
      2. Open a SCORM with unlimited attempts both in web and in the app. In the app, go offline and do 2 attempts (use different answers to be able to identify them by grade). At the same time, do 1 attempt in web and finish it. Synchronize the app and check that the attempts are sent in order.
      3. In the app, go to private files and click to upload a file. Check that the upload methods are displayed in this order: album, camera, audio, video, file (Android), shared files (iOS).
      Show
      In the app, open a message discussion. Check that the messages are ordered from oldest to newest. Open a SCORM with unlimited attempts both in web and in the app. In the app, go offline and do 2 attempts (use different answers to be able to identify them by grade). At the same time, do 1 attempt in web and finish it. Synchronize the app and check that the attempts are sent in order. In the app, go to private files and click to upload a file. Check that the upload methods are displayed in this order: album, camera, audio, video, file (Android), shared files (iOS).
    • MOODLE_32_STABLE
    • MOODLE_33_STABLE
    • Moodle Mobile 3.3.0

      There are some places in the app where we do something like:

      array.sort(function(a, b) {
          return a > b;
      });
      

      This is wrong. The compare function must return a positive or negative value, not a boolean.

            Unassigned Unassigned
            dpalou Dani Palou
            Dani Palou Dani Palou
            Juan Leyva Juan Leyva
            Berta Maroto Berta Maroto
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.