AIMP Forum

AIMP for Android => Предложения / Suggestions => Topic started by: Runze on May 04, 2026, 17:13:20

Title: [Planned] Strange sorting order for Chinese song filenames (not by Pinyin)
Post by: Runze on May 04, 2026, 17:13:20
Message:

In AIMP for Android, when sorting Chinese songs by filename, the order is not based on the first character's Pinyin (phonetic alphabet) as expected. It seems to follow a different rule (possibly Unicode code point or stroke order).

Test example (single Chinese characters as filenames):
不(b), 出(ch), 半(b), 唐(t), 弱(r), 归(g), 折(zh), 桃(t), 清(q), 游(y), 燕(y)

Expected Pinyin order (as seen in other players):
半(b) → 不(b) → 出(ch) → 归(g) → 清(q) → 弱(r) → 唐(t) → 桃(t) → 燕(y) → 游(y) → 折(zh)

Actual order in AIMP for Android – appears arbitrary, making it difficult to browse Chinese song lists.

Suggestion:

Implement standard Pinyin-based sorting for Chinese filenames, or add an option to choose the sorting rule.

Environment:

AIMP for Android version: v4.25.1673(07.03.2026)

Android version: Android 15

System language: Chinese

Thank you for your great work.
Title: Re: Strange sorting order for Chinese song filenames (not by Pinyin)
Post by: Artem on May 09, 2026, 13:16:35
With the migration to the Android 17 SDK, I plan to use a new library for string comparison. If you're interested, I can send you the development version for testing.
Title: Re: Strange sorting order for Chinese song filenames (not by Pinyin)
Post by: Runze on May 11, 2026, 10:30:48
I’d be happy to try the development version. Please send it to me.  :)
Title: Re: Strange sorting order for Chinese song filenames (not by Pinyin)
Post by: Artem on May 13, 2026, 22:08:14
Here is nightly build:
https://disk.yandex.ru/d/PlqxQzwGyKa-rA
New string comparing algorithm is used inside playlist (music library is not yet updated to use it).
Waiting for your feedback.
Title: Re: Strange sorting order for Chinese song filenames (not by Pinyin)
Post by: Runze on May 17, 2026, 16:14:09
The sorting issue for Chinese filenames still exists in the nightly build. Please consider using TinyPinyin (lightweight, Android-friendly) for pinyin-based sorting.
The new "highlight current playing song" feature is good.
TinyPinyin official GitHub repo: https://github.com/promeG/TinyPinyin
Title: Re: Strange sorting order for Chinese song filenames (not by Pinyin)
Post by: Artem on May 17, 2026, 20:06:30
The sorting issue for Chinese filenames still exists in the nightly build

What sorting template you've tried?
Title: Re: Strange sorting order for Chinese song filenames (not by Pinyin)
Post by: Runze on May 18, 2026, 11:24:44
Default sorting by file name
Title: Re: Strange sorting order for Chinese song filenames (not by Pinyin)
Post by: Artem on May 18, 2026, 13:48:40
Default sorting by file name

Do you've sorted the files in playlist? or music library (my music) or file adding dialog?
Title: Re: Strange sorting order for Chinese song filenames (not by Pinyin)
Post by: Runze on May 18, 2026, 16:26:14
I sorted the files by name in the "My Music/Folders" section.
Title: Re: Strange sorting order for Chinese song filenames (not by Pinyin)
Post by: Artem on May 18, 2026, 16:58:12
I sorted the files by name in the "My Music/Folders" section.

=(

Here is nightly build:
https://disk.yandex.ru/d/PlqxQzwGyKa-rA
New string comparing algorithm is used inside playlist (music library is not yet updated to use it).
Waiting for your feedback.
Title: Re: Strange sorting order for Chinese song filenames (not by Pinyin)
Post by: Runze on May 18, 2026, 19:06:53
Sorry, that was my mistake. I apologize for wasting your time. But I just checked again — sorting Chinese songs by "File Name" in the playlist still does not sort by Pinyin.
Title: Re: Strange sorting order for Chinese song filenames (not by Pinyin)
Post by: Artem on May 19, 2026, 01:04:29
Ok, thank you. It's seem ICU library is not suitable for replacement for current algorithm. Thank you for testing
Title: Re: Strange sorting order for Chinese song filenames (not by Pinyin)
Post by: Artem on May 20, 2026, 22:05:03
Please, try this build:
https://disk.yandex.ru/d/jWWx_6E5r0mGIQ
Title: Re: Strange sorting order for Chinese song filenames (not by Pinyin)
Post by: Runze on May 23, 2026, 17:49:59
OK. Thank you, I'll test it.
Title: Re: Strange sorting order for Chinese song filenames (not by Pinyin)
Post by: Runze on May 24, 2026, 09:48:11
Webpage prompt: Не удалось скачать файл. Попробуйте позже.

Are there any other file sharing methods? Can you send it via Telegram, VK, or email?
Please, try this build:
https://disk.yandex.ru/d/jWWx_6E5r0mGIQ
Title: Re: Strange sorting order for Chinese song filenames (not by Pinyin)
Post by: Artem on May 25, 2026, 08:19:32
Webpage prompt: Не удалось скачать файл. Попробуйте позже.

Are there any other file sharing methods? Can you send it via Telegram, VK, or email?

https://drive.google.com/file/d/15p-Res4ec6vn_S6Ir4NvU9EwQy7oSvOF/view?usp=sharing
Title: Re: Strange sorting order for Chinese song filenames (not by Pinyin)
Post by: Runze on May 28, 2026, 16:55:52
In the playlist, sorting Chinese songs by filename is still not sorted by Pinyin.
Suggest adding a gesture: on the home screen, swipe from left to right to go to the tab bar. The opposite gesture (swipe from right to.
Also, I suggest again that use the TinyPinyin library for proper Pinyin‑based sorting on Android. GitHub repo: https://github.com/promeG/TinyPinyin
Title: Re: Strange sorting order for Chinese song filenames (not by Pinyin)
Post by: Artem on May 28, 2026, 20:13:28
In the playlist, sorting Chinese songs by filename is still not sorted by Pinyin

Thank you for your help. I will put this task off for the future for now
Title: Re: Strange sorting order for Chinese song filenames (not by Pinyin)
Post by: Runze on May 30, 2026, 13:05:07
Artem, sorry, my fault. I just verified that in AIMP 4.31.1729 beta (20.05.2026), filename sorting for Chinese songs in playlist is already using Pinyin.
Please ignore my previous report. Thanks and sorry for the trouble.
Best regards.
Title: Re: Strange sorting order for Chinese song filenames (not by Pinyin)
Post by: Artem on June 01, 2026, 15:39:14
OK, thank you for clarification
Anyway, I plan to return to this issue in v4.40
Title: Re: Strange sorting order for Chinese song filenames (not by Pinyin)
Post by: 17hapi on June 03, 2026, 14:36:44
Playlist is ok. Will the music library use it in v4.40?
Title: Re: Strange sorting order for Chinese song filenames (not by Pinyin)
Post by: Artem on June 03, 2026, 20:18:43
Playlist is ok. Will the music library use it in v4.40?

Yes