# Unidimensional Array Ascending Sort

**URL:** <https://techcommunity.softwareag.com/t/unidimensional-array-ascending-sort/75386>\
**Category:** Forum\
**Tags:** Adabas-Natural, Natural, Natural-on-Mainframes\
**Created:** [September 14, 2007, 5:04pm UTC](https://techcommunity.softwareag.com/t/unidimensional-array-ascending-sort/75386 "2007-09-14T17:04:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![watty](https://avatars.discourse-cdn.com/v4/letter/w/ba9def/32.png) [@watty](https://techcommunity.softwareag.com/u/watty)\
**Post date:** [September 14, 2007, 5:04pm UTC](https://techcommunity.softwareag.com/t/unidimensional-array-ascending-sort/75386/1 "2007-09-14T17:04:23Z")

</div>

Hi Guys…

I’ve got a problem…

There is an array with 300 occurrences and I need to sort the values there  
in ascending position ignoring the duplicate values.  
The array can contain 5 occurrences or 280 or 290. I will never know before…

Basically…

it’s a (n4/1:300)

let’s suppose that I have

4 (1)  
5 (2)  
9 (3)  
120 (4)  
4 (5)  
6 (6)  
130 (7)

I need it like this…

4(1)  
5(2)  
6(3)  
9(4)  
120(5)  
130(6)

Long time ago, I use to have a cake’s receipt for it…but I tried to find everywhere  
and I couldn’t…

Can someone send it to me please?

Tks

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [April 2, 2021, 2:48pm UTC](https://techcommunity.softwareag.com/t/unidimensional-array-ascending-sort/75386/2 "2021-04-02T14:48:44Z")

</div>


