47 integer,
intent(in) :: n
48 integer,
intent(inout) :: list(n)
49 integer,
intent(inout) :: order(n)
71 integer,
intent(in) :: n
72 real(kind_real),
intent(inout) :: list(n)
73 integer,
intent(inout) :: order(n)
95 integer,
intent(in) :: n
96 integer,
intent(in) :: left_end
97 integer,
intent(in) :: right_end
98 integer,
intent(inout) :: list(n)
99 integer,
intent(inout) :: order(n)
102 integer,
parameter :: max_simple_sort_size = 6
104 integer :: reference,temp
106 if (right_end<left_end+max_simple_sort_size)
then 111 reference = list((left_end+right_end)/2)
118 if (list(i)>=reference)
exit 123 if (list(j)<=reference)
exit 142 if (left_end<j)
call quick_sort(n,left_end,j,list,order)
143 if (i<right_end)
call quick_sort(n,i,right_end,list,order)
157 integer,
intent(in) :: n
158 integer,
intent(in) :: left_end
159 integer,
intent(in) :: right_end
160 real(kind_real),
intent(inout) :: list(n)
161 integer,
intent(inout) :: order(n)
164 integer,
parameter :: max_simple_sort_size = 6
166 real(kind_real) :: reference,temp
168 if (right_end<left_end+max_simple_sort_size)
then 173 reference = list((left_end+right_end)/2)
180 if (list(i)>=reference)
exit 185 if (list(j)<=reference)
exit 204 if (left_end<j)
call quick_sort(n,left_end,j,list,order)
205 if (i<right_end)
call quick_sort(n,i,right_end,list,order)
219 integer,
intent(in) :: n
220 integer,
intent(in) :: left_end
221 integer,
intent(in) :: right_end
222 integer,
intent(inout) :: list(n)
223 integer,
intent(inout) :: order(n)
229 do i=left_end,right_end-1
231 if (list(i)>list(j))
then 253 integer,
intent(in) :: n
254 integer,
intent(in) :: left_end
255 integer,
intent(in) :: right_end
256 real(kind_real),
intent(inout) :: list(n)
257 integer,
intent(inout) :: order(n)
261 real(kind_real) :: temp
263 do i=left_end,right_end-1
265 if (list(i)>list(j))
then
integer, parameter, public kind_real