ccsync icon indicating copy to clipboard operation
ccsync copied to clipboard

Bug: sorting Function (sort by ID)

Open Neeraj-gagat opened this issue 1 year ago • 4 comments

Describe the bug Error in sorting function while sorting by (ID)

To Reproduce Steps to reproduce the behavior:

  1. Go to 'http://localhost:5173/home' in your local setup
  2. Click on 'ID' you will see its not able to sort the tasks by id
  3. See error

Expected behavior It should sort the task as expected behaviour but its doing nothing except flickering

Video

https://github.com/user-attachments/assets/eab60f65-826e-442f-879e-4e75878e1a72

Desktop (please complete the following information):

  • OS: [ linux Ubuntu 22.04.5 LTS]
  • Browser [ firefox]
  • Version [Ubuntu 22.04.5 LTS]

Note: this is caused after the latest merges. i have solved this same bug in issue #185 PR #199

Neeraj-gagat avatar Nov 20 '25 13:11 Neeraj-gagat

hey @its-me-abhishek can you assign this issue to me. i have fixed the same kind of issue before in PR #199 so i am well aware of the fixes/ and whats causing this issue. so let me know i will make a pr for this

Neeraj-gagat avatar Nov 20 '25 13:11 Neeraj-gagat

Hi @Neeraj-gagat!

If you’re referring to the overdue task IDs appearing at the top, that’s expected behavior. The implemented functionality always prioritizes overdue tasks by keeping them at the top, regardless of any filters or sorting applied.

You can also check the PR #209 description, this behavior was intentionally added since overdue tasks should be addressed first.

Reference Image :

Image

ShivaGupta-14 avatar Nov 20 '25 16:11 ShivaGupta-14

Hey @ShivaGupta-14 No I wasn't referring to the overdue tasks being on the top. Check in the video above even the tasks that are not marked as overdue are not sorting as expected. Will create a PR for this soon

Neeraj-gagat avatar Nov 20 '25 16:11 Neeraj-gagat

@Neeraj-gagat Ohh got it, I understand the actual issue now. Thanks for clarifying, then it's all good.

ShivaGupta-14 avatar Nov 20 '25 17:11 ShivaGupta-14