question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Search filters put 'Programming Language :: Python :: N :: Only' checkboxes in an odd place

See original GitHub issue

The search-filter checkboxes are sorting the Programming Language :: Python :: N :: Only checkboxes below all of the respective N.n checkboxes, instead of placing them immediately below the N checkboxes:

more logical place for the checkboxes

This is highly nonintuitive, at least to me.

This may be low priority given that, e.g., #2442 and/or #3462 would presumably change the UI considerably.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
dicommented, Apr 3, 2020

This seems to have resolved itself. https://pypi.org/search/?q= currently shows the following:

Screen Shot 2020-04-02 at 9 41 42 PM
2reactions
hellpcommented, Jul 28, 2018

The root cause seems to be the default ordering of Postgres’ text fields.

Example:

SELECT classifier FROM mytable ORDER BY classifier;

Output:

Python :: 2 
Python :: 2.7 
Python :: 2 :: Only 

Looks like the collation “ucs_basic” (mentioned here as a SQL standard, but not default in PG, for UTF-8: https://www.postgresql.org/docs/10/static/collation.html) returns the strings in the order we’d prefer:

SELECT classifier FROM mytable ORDER BY classifier COLLATE ucs_basic ;

Output:

Python :: 2 
Python :: 2 :: Only 
Python :: 2.7 

What’s the better idea? Simply change the query in the one place (does sqlalchemy support that somehow) or migrate the database field to always order by this collation?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Python :: N :: Only' checkboxes in an odd place · Issue #3851 ...
The search-filter checkboxes are sorting the Programming Language ... Search filters put 'Programming Language :: Python :: N :: Only' ...
Read more >
Search Bar to filter checkboxes in Qlistview - Stack Overflow
I have a program where it shows all c files from a selected folder as checkboxes in a Qlistview. I'm trying to make...
Read more >
How To Select The Check Box In Selenium With Examples
This Tutorial Explains Various Methods To Select Check Box In Selenium ... Go to any website that has a checkbox to select and...
Read more >
Python GUI: How to create Check box - YouTube
In this tutorial we are going to create a check box or Check Button and get its Value using Python TkinterLike Facebook Page: ......
Read more >
Python's filter(): Extract Values From Iterables
Python's filter () is a built-in function that allows you to process an iterable and extract those items that satisfy a given condition....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found