Moodle

default sort order for table of submitted assignments is set to descending timemodified (of student's last submission)

Details

  • Type: Improvement Improvement
  • Status: Open Open
  • Priority: Minor Minor
  • Resolution: Unresolved
  • Affects Version/s: 1.9.2
  • Fix Version/s: None
  • Component/s: Assignment
  • Labels:
    None
  • Environment:
    php 5, mysql 5, apache 2, moodle 1.9.2
  • Database:
    MySQL
  • Difficulty:
    Easy
  • Affected Branches:
    MOODLE_19_STABLE

Description

every teacher (i talked to) that clicks the "XXX submitted assignments" link expect it
to display a table sorted by the timemodified of student's submitted assignment in descending order
so they can immediately see the last submitted assignments and be able to view / grade them.
(without having to click twice on the timemodified sort link at the head of the table)

so i changed line ~1108 on mod/assigment/lib.php to the following:
$table->sortable(true, 'timemodified',SORT_DESC);//sorted by timemodified by default

maybe we can have (add) a configurable setting for this ?

Activity

Hide
Mihai Sucan added a comment -

The reporter has a point. I believe moodle should default to the most used sorting.

I have attached a patch for this. The patch is against the current cvs MOODLE_19_WEEKLY. To apply:

cd moodle
patch p0 < patchMDL-17625.diff

Show
Mihai Sucan added a comment - The reporter has a point. I believe moodle should default to the most used sorting. I have attached a patch for this. The patch is against the current cvs MOODLE_19_WEEKLY. To apply: cd moodle patch p0 < patchMDL-17625.diff
Hide
Jose Cedeno added a comment -

Tested the patch, it worked for me.

Show
Jose Cedeno added a comment - Tested the patch, it worked for me.

People

Vote (1)
Watch (1)

Dates

  • Created:
    Updated: