Forum archive 2000-2006

Thomas R. Shemanske - sort orders

Thomas R. Shemanske - sort orders

by Arnold Pizer -
Number of replies: 0
inactiveTopicsort orders topic started 6/14/2004; 4:00:46 PM
last post 6/14/2004; 4:10:11 PM
userThomas R. Shemanske - sort orders  blueArrow
6/14/2004; 4:00:46 PM (reads: 657, responses: 1)
I got an error in posting this last time, so I hope there is no duplication.

This is in part a followup to my previous question regarding the order in which sets are listed on a page.

There is a great deal of difference between how the sets are listed and this difference depends not only on who the user is, but what page they are on.

To test, I created a series of sets with names that would easily sort:

OC01-01
OC01-02
OC01-03
..
OC05-07, etc

Now, part of WeBWorK's confusion is that they were all made with the same template, and so have the same open and due dates, thus sorting by "status" does nothing, and there does not appear to be a secondary sort priority.

With a guest login, http://webwork.dartmouth.edu/webwork2/opencalc/

the guest will see problem sets in the following order:
OC05-04
OC05-02
OC04-07
OC04-05...

and this is independent of the guest account

As administrator,  I saw:
OC05-02
OC04-06
OC04-04
OC04-05 ...

When I go to the adduser page, the problems are displayed as
OC02-01
OC10-05
OC12-01
OC07-07...

As far as I can tell these are all more or less random orders.

I have tried (so far without success to modify) ProblemSets.pm in
/var/webwork2/lib/WeBWorK/ContentGenerator to use "name" as the sort order instead of "status"

This is version WW2 (5/23/04 i.e., post pr4)

I would love some ideas of how to address this.

Thanks

Tom





<| Post or View Comments |>


userThomas R. Shemanske - Re: sort orders  blueArrow
6/14/2004; 4:10:11 PM (reads: 885, responses: 0)
Ok, I was able to force  the order in normal display mode (I forgot to restart apache), but this is not necessarily the desireable sort order for all, and does not address the ordering in the addusers page.

T

<| Post or View Comments |>