Group Abstract Group Abstract

Message Boards Message Boards

0
|
10.2K Views
|
2 Replies
|
0 Total Likes
View groups...
Share
Share this post:

How can I order a list of rules by given list?

Posted 11 years ago
POSTED BY: Pat Mac
2 Replies
Posted 11 years ago

Great,

Thank you, I was trying to do this with Cases[] but just ended up further confused. Your technique is perfect.

POSTED BY: Pat Mac

Sort[list2,OrderedQ[{Position[list1, #1[[1]]], Position[list1, #2[[1]]]}] &]

Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard