Skip to content

Sort By Name algorithm must be replaced

Description

The current sort by name algorithm in VLC Android sorts the files in undesired order Eg. If there are files named 1, 2, 3... 10, 11, 12... The sort by name sorts these files as 1, 10, 11..., 2, 3, 4... Instead it should be sorted proper order. The image below is how the files are sorted in VLC when sort by name is applied.

Expected behavior

The files must be in proper order sorted by name as 1, 2,3, 4, 5 when listed

In short Natural Sort must be used.

Screenshot / video

The sort by name seen in VLC Android currently.

Screenshot_2023-03-01-23-05-01-706_org.videolan.vlc-edit

The expected sort by name desired that is already implemented in MX Video player

Screenshot_2023-03-01-23-08-38-718_com.mxtech.videoplayer.ad-edit

App mode

Smartphone

Edited by Arun Kennedy