Back to project page RandomMusicPlayer.
The source code is released under:
Apache License
If you think the Android project RandomMusicPlayer listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.matthew.ahsam.phoenix.randommusicplayer; //from w w w. j av a 2s .c o m import java.io.File; public class FileSort extends Quicksort<File> { @Override protected int compare(File f1, File f2) { int cmp = f1.getName().compareTo(f2.getName()); if (cmp >= 1) { return 1; } else if (cmp <= -1) { return -1; } else { return 0; } } FileSort (File [] files) { setFullArray(files); } }