Remember My Sort

An Xposed module that forces the Android file picker to remember your sorting preferences.

Android CI
Kotlin
Android

Get it on F-Droid Get it on IzzyOnDroid Get it on GitHub Get it on Obtainium

Overview

Starting with Android 11's scoped storage, all apps that need file access must use the system file picker. This picker fails to persist sort preferences across directories. Sort order is kept in the root view, but navigating into any subdirectory resets it to filename A-Z. Users must manually change the sort every time they browse into a folder, regardless of how many times they've set it before.

Users have reported the issue since 2021 with no fix from Google.

Usage

From the file picker's sort menu:

  • Normal tap: Updates the global sort for all folders.
  • Long-press: Saves a custom sort for the current folder only. Clear it by changing sort without long-press.

Note

Per-folder sorting quirks:

  1. Recent view can't have per-folder sort. Long-pressing there updates the global sort instead.
  2. Sort settings are stored per content provider. The same folder reached through different entry points may be treated separately (e.g., Downloads via quick access vs. via root storage).

Requirements

Requires LSPosed and Android 11+. Works on Pixel and AOSP-based ROMs. OEM-modified ROMs are untested.

Installation

  1. Install APK and enable in LSPosed Manager
  2. Add recommended DocumentsUI packages to scope
    • Pixel: com.google.android.documentsui
    • AOSP: com.android.documentsui
  3. Force stop DocumentsUI

Build

  1. Install JDK 21, Android SDK

  2. Configure SDK path in local.properties

    sdk.dir=/path/to/android/sdk
  3. Build APK

    ./gradlew assembleRelease

License

GPLv3

This project is licensed under the GNU General Public License v3.0. See LICENSE for details.

Releases

v3.0.0

Stable

3/18/2026, 10:13:22 AM

💥 BREAKING CHANGES

  • due to df21727 - migrate to libxposed API 101 (commit by @hxreborn):

    Migrates from libxposed API 100 to 101. API 100 will no longer be supported once 101 is officially released. An LSPosed Manager with API 101 support may not be publicly available yet.

✨ New Features

Assets

1

v2.0.1

Stable

3/9/2026, 8:51:04 PM

🐛 Bug Fixes

  • ef31320 - prevent dimId from being misinterpreted as the sort direction (commit by @hxreborn)

Restores sort preferences for users upgrading from v1.x.

Assets

1

v2.0.0

Stable

1/4/2026, 11:45:30 AM

✨ New Features

  • ffb4e6a - per-folder sort preferences (commit by @hxreborn)
    • Normal tap: Updates global sort for all folders
    • Long-press: Saves custom sort for current folder only

🐛 Bug Fixes


Note: If DocumentsUI crashes after update, clear the app's data

Assets

1