view paper/source/Sort.java @ 10:90aaf305aed6 default tip

add presen
author Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
date Thu, 18 Feb 2016 09:06:13 +0900
parents a97aa059242f
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.flip(info);
    }
}