• The sort order for salary integers has a floor in that for e.g. if you have 100k 150k and 90k as the salaries and you sort them descending they will appear with the 90k first followed by the 150k then the 100k.
    Could it have something to do with the “jobman_sort_fields” in the functions with the uasort function.
    Your assistance is appreciated.

    http://ww.wp.xz.cn/extend/plugins/job-manager/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Gary Pendergast

    (@pento)

    It currently sorts the salaries alphabetically, instead of numerically.

    I’ll look at fixing this in a later version.

    Thread Starter easypony

    (@easypony)

    I appreciate you taking the time to answer.
    Could you point me in the direction of the function or the class which is making the query or sorting the order?
    I will see if I can do anything and post back here.
    Thank you

    Plugin Author Gary Pendergast

    (@pento)

    This is done in the jobman_display_jobs_list() function, frontend-jobs.php. Line 45 (the default option of the switch) is the bit that adds the “sort by the field you selected” code.

    As this is done in MySQL, it may let you use CAST() to convert it to an int, but I haven’t tested this and have no idea if it’d work.

    Thread Starter easypony

    (@easypony)

    Much appreciated.
    I will give it a go and test then reply to the outcome.
    Thank you

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘[Plugin: Job Manager] Salary Sort Order’ is closed to new replies.