Sort a little better for chosen songs

This commit is contained in:
Christopher Eby 2010-04-12 23:17:02 -05:00
parent e2889d3d25
commit 93f0873b64

View File

@ -130,7 +130,8 @@ public class Song implements Parcelable {
String[] projection = { MediaStore.Audio.Media._ID };
ContentResolver resolver = ContextApplication.getContext().getContentResolver();
Cursor cursor = resolver.query(media, projection, selection, null, null);
String sort = MediaStore.Audio.Media.ARTIST_KEY + ',' + MediaStore.Audio.Media.ALBUM_KEY + ',' + MediaStore.Audio.Media.TRACK;
Cursor cursor = resolver.query(media, projection, selection, null, sort);
if (cursor == null)
return null;
@ -211,4 +212,4 @@ public class Song implements Parcelable {
{
return 0;
}
}
}