Top "Natural-sort" questions

Natural sorting is ordering things the way a human would.

Javascript : natural sort of alphanumerical strings

I'm looking for the easiest way to sort an array that consists of numbers and text, and a combination of …

javascript sorting natural-sort
Natural Sort in MySQL

Is there an elegant way to have performant, natural sorting in a MySQL database? For example if I have this …

sql mysql sorting natural-sort
Natural sort order string comparison in Java - is one built in?

I'd like some kind of string comparison function that preserves natural sort order1. Is there anything like this built into …

java algorithm comparator natural-sort
How to loop over files in natural order in Bash?

I am looping over all the files in a directory with the following command: for i in *.fas; do some_…

bash natural-sort
Natural Sort Order in C#

Anyone have a good resource or provide a sample of a natural order sort in C# for an FileInfo array? …

c# sorting file natural-sort
How can I sort a hash's keys naturally?

I have a Perl hash whose keys start with, or are, numbers. If I use, foreach my $key (sort keys %…

perl sorting hash natural-sort
Comparing strings in postgres using comparison operators?

In many programming languages you can compare strings using operators like >, >=, < etc...and the language will base …

postgresql natural-sort
How to do natural sort output of "uniq -c" in descending/acsending order? - unix

How to do natural sort on uniq -c output? When the counts are <10, the uniq -c | sort output looks …

sorting unix count uniq natural-sort
Alphanumeric sorting with PostgreSQL

In the database, I have various alpha-numeric strings in the following format: 10_asdaasda 100_inkskabsjd 11_kancaascjas 45_aksndsialcn 22_dsdaskjca 100_skdnascbka I want …

sql postgresql sorting sql-order-by natural-sort
Java String Number Comparator

I have a method returning a list of String that need to be sorted. However, I'm running into the old …

java natural-sort