diff paper/source/Sort.java @ 3:a97aa059242f

add images & sources
author Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
date Fri, 05 Feb 2016 21:00:41 +0900
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/paper/source/Sort.java	Fri Feb 05 21:00:41 2016 +0900
@@ -0,0 +1,14 @@
+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);
+    }
+}
\ No newline at end of file