Skip to content

Add descending sort.#32

Open
JoeZiminski wants to merge 3 commits into
mainfrom
support_descending_sort
Open

Add descending sort.#32
JoeZiminski wants to merge 3 commits into
mainfrom
support_descending_sort

Conversation

@JoeZiminski
Copy link
Copy Markdown
Collaborator

@JoeZiminski JoeZiminski commented May 28, 2026

This PR adds the option to sort in descending order for the viewer.sort function. I needed this in the spikeinterface PR as by default the larger x-valued contact was displayed before the smaller one, and there was no way to resort these as lexsort is always ascending.

This adds the assumption that no header entry starts with a "!". I think this is fairly safe but an assert can be added somewhere, but I wasn’t sure where the best place to check this was.

@JoeZiminski JoeZiminski requested a review from oliche May 28, 2026 16:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant