public MyTableModel(Collection<SupplierProduct> initialData)
	{
		ArrayList<SupplierProduct> sortedData = new ArrayList<SupplierProduct>(initialData);
		Collections.sort(sortedData, new Comparator<SupplierProduct>() {
			@Override
			public int compare(SupplierProduct o1, SupplierProduct o2)
			{
				return o1.supplierID.toString().compareTo(o2.supplierID.toString());
			}
		});
		data = new SupplierProduct[sortedData.size()];
		dataSwitch = new boolean[sortedData.size()];
		int i = 0;
		for (SupplierProduct p : sortedData)
		{
			data[i] = p;
			dataSwitch[i] = true;
			++i;
		}
		columnNames = new String[4];
		for (i = 0; i < 4; ++i)
			columnNames[i] = AutoAppro.messages.getString("column_name_" + i);
	}