Sorting Jobs (within department header) by Alpha

Talk about writing modules and plugins for CMS Made Simple, or about specific core functionality. This board is for PHP programmers that are contributing to CMSMS not for site developers
Post Reply
Rigel7
New Member
New Member
Posts: 3
Joined: Tue Feb 19, 2008 10:30 pm

Sorting Jobs (within department header) by Alpha

Post by Rigel7 »

I read a posting regarding sorting the Jobs Module Departments by alpha, and the solution makes sense:

http://forum.cmsmadesimple.org/index.ph ... 458.0.html

But now that I have that working, my problem is that I want to sort the jobs *within* the departments by alpha as well. Does anyone know how I do that? I've looked through the code and can't seem to find where that is done.

Thanks,

Marcus
irish
Forum Members
Forum Members
Posts: 101
Joined: Tue Jun 03, 2008 2:31 pm

Re: Sorting Jobs (within department header) by Alpha

Post by irish »

You should be able to just use the parameter:

{cms_module module="Jobs" sortby="job_title" }
Rigel7
New Member
New Member
Posts: 3
Joined: Tue Feb 19, 2008 10:30 pm

Re: Sorting Jobs (within department header) by Alpha

Post by Rigel7 »

Thanks for the reply. Yes, that is possible, but then I get an unwanted consequence in that the departments are out of alpha order. It's like this:

Let's say you have 2 departments and two jobs in each department.

"Human Resources" Department has "Desk Person" and "Manager"
and
"Engineering" Department has "Groundsperson" and "Secretary"

If you sort by "Category_Name" then the "Engineering" Department is listed first(good because it comes alpha before Human Resorces), but then the jobs within this department are sorted by job_id, I think (not good, as not alpha).

If you sort by job_title, then "Human Resources" is listed first (bad) but the jobs are then listed in alpha order.

So what I need is for the sort to be on category first, and then the jobs next within that category. This seems most intuitive to most users, and I've gotten many questions from users as to why we have things "out of order".

Right now, either solution is only partially satisfactory to job seekers.
Post Reply

Return to “Developers Discussion”