drakeRAGE/CaptureChronicles

Add sorting options for Previous, Upcoming, and Ongoing events in Search page

Open

#22 opened on Oct 28, 2025

 (1 comment) (0 reactions) (1 assignee)JavaScript (7 forks)auto 404
enhancementfrontendhacktoberfesthelp wanted

Repository metrics

Stars
 (5 stars)
PR merge metrics
 (PR metrics pending)

Description

Description: Currently, the Search page (/gallery/src/pages/Search) provides sorting options based on:

<label>Sort :</label>
<select onChange={handleChange} defaultValue={'created_at_desc'} className='border rounded-lg p-3' id="sort_order">
    <option value="ticketfee_desc" className='font-semibold'>Price high to low</option>
    <option value="ticketfee_asc" className='font-semibold'>Price low to high</option>
    <option value="createdAt_desc" className='font-semibold'>Latest</option>
    <option value="createdAt_asc" className='font-semibold'>Oldest</option>
</select>

I want to add new sorting options for:

  • Previous events
  • Upcoming events
  • Ongoing events

These new sorting filters should allow users to easily categorize and view listings based on their event timelines. U can also check events page as how the events are sorted there based on previous, upcoming and ongoing. You can also check the Events page to see how events are sorted there based on Previous, Upcoming, and Ongoing categories.

Contributor guide