This repository has been archived by the owner on Feb 9, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Sorting in advanced way #10
Comments
@lee1043 thanks for this, I have always disliked the python default sorting, the example above is certainly more preferable - it'd be a great function to have in a general library |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
In the interactive portrait plot, would it be available to add below function replacing the python’s default sorting?
Above function is what that I have used for creating my own portrait plot before your modal capability has become available. It sorts labels more in recognizable way.
For example, default
sorted
sorts as below:A_r10i1p1
A_r1i1p1
A_r20i1p1
A_r2i1p1
A_r3i1p1
And the function I implemented sorts as below:
A_r1i1p1
A_r2i1p1
A_r3i1p1
A_r10i1p1
A_r20i1p1
I guess the right place might be in
click/click_plots/portrait_plots.py
, line 174 and 176 wheresorted
has been used, but would be nicer if you could confirm this for me.Below is for actual use example.
The text was updated successfully, but these errors were encountered: