// Collection of code snippets by Arne Vajhøj 
// (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) 
public class TwoSort {
   public static void main(String[] args) {
      int[] ia = { 3, 2, 4, 1, 5 };
      String[] sa = { "tre", "to", "fire", "en", "fem" };
      for(int i = 0; i < (ia.length - 1); i++) {
         for(int j = (i + 1); j < ia.length; j++) {
            if(ia[i] < ia[j]) {
               int itemp = ia[i];
               ia[i] = ia[j];
               ia[j] = itemp;
               String stemp = sa[i];
               sa[i] = sa[j];
               sa[j] = stemp;
            }
         }
      }
      for(int k = 0; k < ia.length; k++) {
         System.out.println(ia[k] + " " + sa[k]);
      }
   }
}
