@@ -0,0 +1,795 @@
+package study.core.algorithm.sort;%0A%0A/**%0A * Created by zhenweiyu on 2017/6/8.%0A */%0Apublic class ThreadSleepSort %7B%0A%0A    public static void sort(int %5B%5Dnum)%7B%0A        for(int i =0;i%3Cnum.length;i++)%7B%0A            final int index = i;%0A            Thread thread = new Thread(new Runnable() %7B%0A                @Override%0A                public void run() %7B%0A                    try %7B%0A                        Thread.sleep(num%5Bindex%5D);%0A                        System.out.print(num%5Bindex%5D);%0A                    %7D catch (InterruptedException e) %7B%0A                        e.printStackTrace();%0A                    %7D%0A                %7D%0A            %7D);%0A            thread.start();%0A        %7D%0A    %7D%0A%0A%0A%0A%0A    public static void main(String%5B%5Dargs)%7B%0A       int%5B%5D num = new int%5B%5D%7B4,5,8,3,6,9,4,1%7D;%0A       sort(num);%0A    %7D%0A%0A%7D%0A

Create ThreadSleepSort.java