Title: Sorting alphabetically
Last modified: November 27, 2021

---

# Sorting alphabetically

 *  Resolved [Dumel](https://wordpress.org/support/users/dumel/)
 * (@dumel)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/sorting-alphabetically-3/)
 * Is it just me or does 1 come before 2, and 2 before 3? Or does alphabetical order
   not include numbers – because strictly speaking numbers are not in the alphabet.
   How do I sort according to file numbers, because choosing the alphabetical sort
   order only changes the expression in my face – not the actual sort order?

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Support [elviiso](https://wordpress.org/support/users/elviiso/)
 * (@elviiso)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/sorting-alphabetically-3/#post-15118389)
 * Hi [@dumel](https://wordpress.org/support/users/dumel/)
 * To sort the gallery based on the file numbers in ascending order, you can select“
   Title – alphabetically” on the Gallery Sorting options as shown in the image 
   linked below: [https://prnt.sc/2146i35](https://prnt.sc/2146i35)
 * To sort the gallery based on the file numbers in descending order, then you can
   select “Title – reverse” instead.
 * Hope this helps.
 * Kind regards,
    Elvis
 *  Thread Starter [Dumel](https://wordpress.org/support/users/dumel/)
 * (@dumel)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/sorting-alphabetically-3/#post-15120807)
 * Hi [@elviiso](https://wordpress.org/support/users/elviiso/)
    You would think 
   that it would work that way, and I first thought that the problem was that FooGallery
   thought that the correct order would be 1, 11, 2, just to give an example, as
   I thought perhaps it only looked at the first character. But that wasn’t the 
   case. I then renamed my whole gallery to have 3 digit numbers as a prefix so 
   I had 001_IMG123.jpg, 002_IMG126.jpg, etc. Even that didn’t want to sort alphabetically.
   I then dragged my images around in Lightroom to achieve the right sort order 
   and then exported them with a sequenced number as prefix. This meant that the
   files were exported in that order, which created a sequential modified date, 
   and now I am able to sort by Date Created ([https://snipboard.io/fBevuy.jpg](https://snipboard.io/fBevuy.jpg)),
   showing the oldest one first as that would have been the first file that was 
   exported. How is that for jumping through hoops because the sorting doesn’t work?

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Sorting alphabetically’ is closed to new replies.

 * ![](https://ps.w.org/foogallery/assets/icon-256x256.gif?rev=2602542)
 * [Photo Gallery by FooGallery : Responsive Image Gallery, Masonry Gallery & Carousel](https://wordpress.org/plugins/foogallery/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/foogallery/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/foogallery/)
 * [Active Topics](https://wordpress.org/support/plugin/foogallery/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/foogallery/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/foogallery/reviews/)

## Tags

 * [sorting](https://wordpress.org/support/topic-tag/sorting/)

 * 2 replies
 * 2 participants
 * Last reply from: [Dumel](https://wordpress.org/support/users/dumel/)
 * Last activity: [4 years, 6 months ago](https://wordpress.org/support/topic/sorting-alphabetically-3/#post-15120807)
 * Status: resolved