Back to project page sixgrid.
The source code is released under:
MIT License
If you think the Android project sixgrid 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 io.pure.sixgrid.drawer; /*from w ww . j a va2s.c om*/ public class SortApps { public void exchange_sort(AppsFragment.Pac[] pacs){ int i, j; AppsFragment.Pac temp; for ( i = 0; i < pacs.length - 1; i++ ) { for ( j = i + 1; j < pacs.length; j++ ) { if ( pacs [ i ].label.compareToIgnoreCase( pacs [ j ].label ) > 0 ) { // ascending sort temp = pacs [ i ]; pacs [ i ] = pacs [ j ]; // swapping pacs [ j ] = temp; } } } } }