@@ -369,8 +369,9 @@ module stdlib_sorting
369
369
module subroutine char_ord_sort( array, work, reverse )
370
370
!! Version: experimental
371
371
!!
372
- !! `char_ord_sort( array[, work, reverse] )` sorts the input `ARRAY` of type `CHARACTER(*)`
373
- !! using a hybrid sort based on the `'Rust" sort` algorithm found in `slice.rs`
372
+ !! `char_ord_sort( array[, work, reverse] )` sorts the input `ARRAY` of type
373
+ !! `CHARACTER(*)` using a hybrid sort based on the `'Rust" sort` algorithm
374
+ !! found in `slice.rs`
374
375
character(len=*), intent(inout) :: array(0:)
375
376
character(len=len(array)), intent(out), optional :: work(0:)
376
377
logical, intent(in), optional :: reverse
@@ -403,8 +404,8 @@ module stdlib_sorting
403
404
pure module subroutine char_sort( array, reverse )
404
405
!! Version: experimental
405
406
!!
406
- !! `char_sort( array[, reverse] )` sorts the input `ARRAY` of type `CHARACTER(*)`
407
- !! using a hybrid sort based on the `introsort` of David Musser.
407
+ !! `char_sort( array[, reverse] )` sorts the input `ARRAY` of type
408
+ !! `CHARACTER(*)` using a hybrid sort based on the `introsort` of David Musser.
408
409
!! The algorithm is of order O(N Ln(N)) for all inputs.
409
410
!! Because it relies on `quicksort`, the coefficient of the O(N Ln(N))
410
411
!! behavior is small for random data compared to other sorting algorithms.
0 commit comments