private List<Pair> orderTimeslots(int meeting, Assignment a, CSP c) {
                // TODO Auto-generated method stub
                //for(t : timeslots)
                        //updatePossibilities
        	
        	  Comparator<Pair> comp = new Comparator<Pair> () {
                  @Override
                  public int compare(Pair n1, Pair n2) {
                          if(n1.value > n2.value){
                                  return +1;
                          }
                          else if(n1.value < n2.value){
                                  return -1;
                          }
                          else {
                                  return 0;
                          }
                  }
          };
          
        		boolean [][] possibilities = new boolean[c.numMeetings + 1][c.numTimeslots + 1];
                List<Pair> list = new ArrayList<Pair>();

        		for(int i = 1; i <= c.numMeetings; i++) {
        			for(int j = 1; j <= c.numTimeslots; j++) {
	                 	possibilities[i][j] = false;
        			}
	        	 }
        		
        		for(int q = 1; q <= c.numTimeslots; q++) {
        			int numFalses = 0;
        			a.assign(meeting, q);
        			for(int i = 1; i <= c.numMeetings; i++) { 	
        				for(int j = 1; j <= numTimeslots; j++) {
        					if(a.meetings[i]!=0) possibilities[i][j] = false;
        					
        					else {
        						if(allowed(i,  j,  a,  c)) {
        							possibilities[i][j] = true;
        							
        						} else {
        							possibilities[i][j] = false;
        							numFalses++;
        						}
        					}
        				}
   	        	 	}
        			list.add(new Pair(q, numFalses));
        			a.remove(meeting, q);
   
        			
        		}
        		
        		Collections.sort(list, comp);
                return list;
        }