[Problem]
Playlist is sorted to 1 - 10 - 11 - ... - 2 - 3(character sorting),
but wanted to be sorted like 1 - 2 - 3 - ... - 10 - 11.
[Cause]
The bundle_key is character, the length of bundle_key doesn't affects sorting.
[Solution]
Fixed the length of bundle_key to 3-digit(3-character).
Change-Id: I16b3b59f213f368c9f8203b15acd44b6d370b2c1
continue;
}
- bundle_key = g_strdup_printf("%d", ++index);
+ // due to MAX_PLAYLIST_LEN limit, the 'index' is set to 100 or less.
+ bundle_key = g_strdup_printf("%03d", ++index);
bundle_meta = g_strdup_printf("%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s",
item->index, MC_STRING_DELIMITER,