view source/Sort2.java @ 7:653cdc2f74e5

add source file
author sugi
date Mon, 01 Apr 2013 23:36:32 +0900
parents
children
line wrap: on
line source

public class SortPhase extends CodeSegment{
	private Receiver info = ids.create(CommandType.PEEK);

    public SortPhase(String key){
        info.setKey(key);
    }
    
    @Override
	public void run() {
		DataList list1 = info.asClass(DataList.class);
        Sort.quickSort(list1);
        ods.put(info.key ,list1);
    }
}