Skip to content

add is_sorted tests and optimize sorting suite#1167

Draft
srinjoy933 wants to merge 2 commits into
fortran-lang:masterfrom
srinjoy933:is_sort
Draft

add is_sorted tests and optimize sorting suite#1167
srinjoy933 wants to merge 2 commits into
fortran-lang:masterfrom
srinjoy933:is_sort

Conversation

@srinjoy933
Copy link
Copy Markdown
Contributor

solve #1166

@srinjoy933 srinjoy933 marked this pull request as draft March 30, 2026 17:30
@14NGiestas 14NGiestas linked an issue May 7, 2026 that may be closed by this pull request
@14NGiestas 14NGiestas added the topic: algorithms searching and sorting, merging, ... label May 7, 2026
default integer parameters, `int_index` and `int_index_low`, and four overloaded
subroutines: `ORD_SORT`, `SORT`, `RADIX_SORT` and `SORT_INDEX`. The
overloaded subroutines also each have several specific names for
default integer parameters, `int_index` and `int_index_low`, and five overloaded
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
default integer parameters, `int_index` and `int_index_low`, and five overloaded
The module `stdlib_sorting` defines several public entities, two
default integer parameters, `int_index` and `int_index_low`, and five overloaded

! Sort a_data based on the sorting of that component
a_data(:) = a_data( index(1:size(a_data)) )
end subroutine sort_a_data
#### `is_sorted` - checks if an input array is sorted
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
#### `is_sorted` - checks if an input array is sorted
```
#### `is_sorted` - checks if an input array is sorted

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

topic: algorithms searching and sorting, merging, ...

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add generic is_sorted utility function to stdlib_sorting

2 participants