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

Allow sorting of Challenges? (Feature request) #93

Open
offsecginger opened this issue May 22, 2017 · 1 comment
Open

Allow sorting of Challenges? (Feature request) #93

offsecginger opened this issue May 22, 2017 · 1 comment

Comments

@offsecginger
Copy link
Contributor

I just had to manually tell mellivora to sort the challenges the way I want. By default, mellivora/htdocs/challenges.php is set to c.points ASC, c.id ASC where I needed it to be different. I also (for OCD sake) changed it in mellivora/htdocs/admin/index.php from points ASC. It would be vastly easier not to modify source code to accomplish this!

@packetgeek
Copy link

Maybe this should be a wiki entry, for those that want the different sort option. Something along the lines of...

For those that want alphabetical/numerical sorting of challenges, this can be accomplished by editing line 126 in mellivora/htdocs/challenges.php. Find/modify the line from:

ORDER BY c.points ASC, c.id ASC',

to:

ORDER BY c.title ASC, c.id ASC',

You can then entitle your questions alphabetically or number them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants