Nakiami / mellivora

Mellivora is a CTF engine written in PHP
GNU General Public License v3.0
441 stars 171 forks source link

Allow sorting of Challenges? (Feature request) #93

Open offsecginger opened 7 years ago

offsecginger commented 7 years ago

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 commented 4 years ago

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.