Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: update sort params to correctly sort #222

Merged
merged 2 commits into from
Jun 11, 2019
Merged

Conversation

rtirserio
Copy link

sort params weren't sorting in the right direction or in some cases the correct field

{ value: '-position__bureau', text: 'Bureau: A-Z' }, // numbers first, then A-Z
{ value: `-${COMMON_PROPERTIES.posted}`, text: 'Posted date: Most recent' }, // sort by soonest posted_date
{ value: 'position__current_assignment__estimated_end_date', text: 'TED: Soonest' },
{ value: 'position__grade', text: 'Grade: Low to high' }, // sort by grade "ranking"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should actually be -position__grade, as "06" is logically the "lowest" grade.

{ value: `-${COMMON_PROPERTIES.posted}`, text: 'Posted date: Most recent' }, // sort by soonest posted_date
{ value: 'position__current_assignment__estimated_end_date', text: 'TED: Soonest' },
{ value: 'position__grade', text: 'Grade: Low to high' }, // sort by grade "ranking"
{ value: 'position__bureau', text: 'Bureau: A-Z' }, // numbers first, then A-Z

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm getting W's first for this one

@mjoyce91
Copy link

mjoyce91 commented Jun 11, 2019

The direction of all of these are backwards on my end

@rtirserio
Copy link
Author

@mjoyce91 fixed

@mjoyce91 mjoyce91 merged commit ed202d0 into staging Jun 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants