Here you can find the source of minFastSort(double x[], int idx[], int n, int m)
public static void minFastSort(double x[], int idx[], int n, int m)
//package com.java2s; // it under the terms of the GNU Lesser General Public License as published by public class Main { public static void minFastSort(double x[], int idx[], int n, int m) { for (int i = 0; i < m; i++) { for (int j = i + 1; j < n; j++) { if (x[i] > x[j]) { double temp = x[i]; x[i] = x[j];/*from www . j av a2s . co m*/ x[j] = temp; int id = idx[i]; idx[i] = idx[j]; idx[j] = id; } } } } }