---
title: 'Android Gallery Sorter'
url: 'https://riccardo.bastianini.me/en/projects/android-gallery-sorter'
markdown: 'https://riccardo.bastianini.me/en/projects/android-gallery-sorter.md'
lang: en
date: '2011-01-01'
description: "By default, the standard Android gallery organizes photos in folders and sorts them by date, from the most recent to the oldest. There's no way to change this sorting, and this sticks out when you use some external tool to add, rename or move photos around the gallery folders. When you do this, …"
---

![Riccardo Bastianini](https://riccardo.bastianini.me/user/themes/rb-spectre/images/header.jpeg)### Riccardo Bastianini

Smarter than a toaster.

  [  ](#sidebar-id) 

 [ ![Riccardo Bastianini](https://riccardo.bastianini.me/user/themes/rb-spectre/images/header.jpeg) ](https://riccardo.bastianini.me/) 

- [It](https://riccardo.bastianini.me/it/projects/android-gallery-sorter)
- [En](https://riccardo.bastianini.me/en/projects/android-gallery-sorter)

#  Android Gallery Sorter

- [It](https://riccardo.bastianini.me/it/projects/android-gallery-sorter)
- [En](https://riccardo.bastianini.me/en/projects/android-gallery-sorter)

 | **Project Name:** | Android Gallery Sorter |
|---|---|
| **Years:** | 2011 |
| **Language:** | Java (Android 2.2+) |
| **Status:** | Released |

[ ![Android Gallery Sorter Screenshot](https://riccardo.bastianini.me/images/a/6/2/8/7/a62877ac9bd7589744c82dff1a64f86fe46a0026-ags-screenshot.png) ](https://riccardo.bastianini.me/en/projects/android-gallery-sorter/ags-screenshot.png)

By default, the standard Android gallery organizes photos in folders and sorts them by date, from the most recent to the oldest. There's no way to change this sorting, and this sticks out when you use some external tool to add, rename or move photos around the gallery folders.

When you do this, although photos are chronologically sorted, it's not the *acquisition date* that is used for sorting, but the *last modified date* taken from the filesystem, so some pictures might appear where they don't belong. **AGS** tries to fix this problem by checking that all files in the gallery have the same value set as *last modified date* and their **EXIF** *acquisition date* (if available).

This way, in many cases, it's possible to recover the right sorting, straight from the phone.

**Disclaimer** The app was written and tested in 2011 on Android 2.2. There are good chances that it does not work on more recent Android versions. You can download the APK using [this link](https://riccardo.bastianini.me/en/projects/android-gallery-sorter/gallery-sorter.apk), but remember to enable installing apps from untrusted sources, or the phone will refuse to install the package.

---

## Navigation

- Parent: [Projects](https://riccardo.bastianini.me/en/projects.md)
- Previous: [Miranda Updater](https://riccardo.bastianini.me/en/projects/miranda-updater.md)
- Next: [ExeKill](https://riccardo.bastianini.me/en/projects/exekill.md)
