Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

Data arrangement

Suvasini
7 - Meteor

Hi all, 

Had a small doubt. The input I had given looked like this

OriginDestination
DelhiVaranasi
DelhiChandigarh
MumbaiBengaluru
MumbaiChennai
AhmedabadDelhi
AhmedabadMumbai

 

After the workflow and all the tools got executed, my output comes up in ascending order 

 

OriginDestination
AhmedabadDelhi
AhmedabadMumbai
DelhiChandigarh
DelhiVaranasi
MumbaiBengaluru
MumbaiChennai

 

 So basically Ahmedabad came first instead of Delhi which was the first origin in my input, how do I get output in the same order as my input? Would appreciate any help. Thanks!

3 REPLIES 3
JagdeeshN
12 - Quasar
12 - Quasar

Hi @Suvasini ,

 

An ascending sort using the Sort Tool should get you the output.

 

jagdeeshn_0-1612499038430.png

 

 

Please refer the attached workflow.

 

Best,

Jagdeesh Narayanan

Suvasini
7 - Meteor

Hi @JagdeeshN 

Thank you for the quick response but I am already getting the output in ascending order. I want to get the output in the same order as my input. There are thousands of rows. But how can I ensure my output comes in the same order as my input order? The input is a random order.

JagdeeshN
12 - Quasar
12 - Quasar

@Suvasini 

 

Thanks for clarifying. In that case a RecordID tool at beginning can provide you with the key for the correct sort order.

 

Please find attached an example.

 

Do let me know if this helps.

Labels
Top Solution Authors