How to sort rows in a specific order as it's own block of rows
Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
I want to sort the following rows of text to a particular order. The sort
commands I am using is dropping the space and bundling all the lines together without the space separation and putting them in alphabetical order. Each block has 8 rows of line data each.
session:cabSessionID:052FPBP6Q6X2XGERWHBT
cabLoginID:053XCDTF8D4J6PD3BG8P
loginName:jack
userAgent:Mozilla/5.0
sessionStartTime:2018-10-01T01:04:10.899Z
memoryInfo:jsHeapSizeLimit:2217857988
totalJSHeapSize:42358792
usedJSHeapSize:36482584
session:cabSessionID:052FPBP6Q6X2XGERWHJE
cabLoginID:053XCDTF8D4J6PD3BG8P
loginName:jack
userAgent:Mozilla/5.0
sessionStartTime:2018-10-01T01:16:41.558Z
memoryInfo:jsHeapSizeLimit:2217857988
totalJSHeapSize:177754040
usedJSHeapSize:44842320
memoryInfo:jsHeapSizeLimit:2217857988
totalJSHeapSize:45252608
usedJSHeapSize:24555080
session:cabSessionID:055S75T4QC8JYC4Q0456
cabLoginID:053XCDTF8D4J6PD3BG8P
loginName:frank
userAgent:Mozilla/5.0
sessionStartTime:2018-10-23T19:11:11.871Z
I want the end result to be like this:
loginName:jack
cabLoginID:053XCDTF8D4J6PD3BG8P
session:cabSessionID:052FPBP6Q6X2XGERWHBT
userAgent:Mozilla/5.0
sessionStartTime:2018-10-01T01:04:10.899Z
memoryInfo:jsHeapSizeLimit:2217857988
totalJSHeapSize:42358792
usedJSHeapSize:36482584
loginName:jack
cabLoginID:053XCDTF8D4J6PD3BG8P
session:cabSessionID:052FPBP6Q6X2XGERWHJE
userAgent:Mozilla/5.0
sessionStartTime:2018-10-01T01:16:41.558Z
memoryInfo:jsHeapSizeLimit:2217857988
totalJSHeapSize:177754040
usedJSHeapSize:44842320
loginName:fred
cabLoginID:053XCDTF8D4J6PD3BG8P
session:cabSessionID:055S75T4QC8JYC4Q0456
userAgent:Mozilla/5.0
sessionStartTime:2018-10-23T19:11:11.871Z
memoryInfo:jsHeapSizeLimit:2217857988
totalJSHeapSize:45252608
usedJSHeapSize:24555080
Any help would be greatly appreciated!!!
sort
New contributor
add a comment |Â
up vote
0
down vote
favorite
I want to sort the following rows of text to a particular order. The sort
commands I am using is dropping the space and bundling all the lines together without the space separation and putting them in alphabetical order. Each block has 8 rows of line data each.
session:cabSessionID:052FPBP6Q6X2XGERWHBT
cabLoginID:053XCDTF8D4J6PD3BG8P
loginName:jack
userAgent:Mozilla/5.0
sessionStartTime:2018-10-01T01:04:10.899Z
memoryInfo:jsHeapSizeLimit:2217857988
totalJSHeapSize:42358792
usedJSHeapSize:36482584
session:cabSessionID:052FPBP6Q6X2XGERWHJE
cabLoginID:053XCDTF8D4J6PD3BG8P
loginName:jack
userAgent:Mozilla/5.0
sessionStartTime:2018-10-01T01:16:41.558Z
memoryInfo:jsHeapSizeLimit:2217857988
totalJSHeapSize:177754040
usedJSHeapSize:44842320
memoryInfo:jsHeapSizeLimit:2217857988
totalJSHeapSize:45252608
usedJSHeapSize:24555080
session:cabSessionID:055S75T4QC8JYC4Q0456
cabLoginID:053XCDTF8D4J6PD3BG8P
loginName:frank
userAgent:Mozilla/5.0
sessionStartTime:2018-10-23T19:11:11.871Z
I want the end result to be like this:
loginName:jack
cabLoginID:053XCDTF8D4J6PD3BG8P
session:cabSessionID:052FPBP6Q6X2XGERWHBT
userAgent:Mozilla/5.0
sessionStartTime:2018-10-01T01:04:10.899Z
memoryInfo:jsHeapSizeLimit:2217857988
totalJSHeapSize:42358792
usedJSHeapSize:36482584
loginName:jack
cabLoginID:053XCDTF8D4J6PD3BG8P
session:cabSessionID:052FPBP6Q6X2XGERWHJE
userAgent:Mozilla/5.0
sessionStartTime:2018-10-01T01:16:41.558Z
memoryInfo:jsHeapSizeLimit:2217857988
totalJSHeapSize:177754040
usedJSHeapSize:44842320
loginName:fred
cabLoginID:053XCDTF8D4J6PD3BG8P
session:cabSessionID:055S75T4QC8JYC4Q0456
userAgent:Mozilla/5.0
sessionStartTime:2018-10-23T19:11:11.871Z
memoryInfo:jsHeapSizeLimit:2217857988
totalJSHeapSize:45252608
usedJSHeapSize:24555080
Any help would be greatly appreciated!!!
sort
New contributor
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I want to sort the following rows of text to a particular order. The sort
commands I am using is dropping the space and bundling all the lines together without the space separation and putting them in alphabetical order. Each block has 8 rows of line data each.
session:cabSessionID:052FPBP6Q6X2XGERWHBT
cabLoginID:053XCDTF8D4J6PD3BG8P
loginName:jack
userAgent:Mozilla/5.0
sessionStartTime:2018-10-01T01:04:10.899Z
memoryInfo:jsHeapSizeLimit:2217857988
totalJSHeapSize:42358792
usedJSHeapSize:36482584
session:cabSessionID:052FPBP6Q6X2XGERWHJE
cabLoginID:053XCDTF8D4J6PD3BG8P
loginName:jack
userAgent:Mozilla/5.0
sessionStartTime:2018-10-01T01:16:41.558Z
memoryInfo:jsHeapSizeLimit:2217857988
totalJSHeapSize:177754040
usedJSHeapSize:44842320
memoryInfo:jsHeapSizeLimit:2217857988
totalJSHeapSize:45252608
usedJSHeapSize:24555080
session:cabSessionID:055S75T4QC8JYC4Q0456
cabLoginID:053XCDTF8D4J6PD3BG8P
loginName:frank
userAgent:Mozilla/5.0
sessionStartTime:2018-10-23T19:11:11.871Z
I want the end result to be like this:
loginName:jack
cabLoginID:053XCDTF8D4J6PD3BG8P
session:cabSessionID:052FPBP6Q6X2XGERWHBT
userAgent:Mozilla/5.0
sessionStartTime:2018-10-01T01:04:10.899Z
memoryInfo:jsHeapSizeLimit:2217857988
totalJSHeapSize:42358792
usedJSHeapSize:36482584
loginName:jack
cabLoginID:053XCDTF8D4J6PD3BG8P
session:cabSessionID:052FPBP6Q6X2XGERWHJE
userAgent:Mozilla/5.0
sessionStartTime:2018-10-01T01:16:41.558Z
memoryInfo:jsHeapSizeLimit:2217857988
totalJSHeapSize:177754040
usedJSHeapSize:44842320
loginName:fred
cabLoginID:053XCDTF8D4J6PD3BG8P
session:cabSessionID:055S75T4QC8JYC4Q0456
userAgent:Mozilla/5.0
sessionStartTime:2018-10-23T19:11:11.871Z
memoryInfo:jsHeapSizeLimit:2217857988
totalJSHeapSize:45252608
usedJSHeapSize:24555080
Any help would be greatly appreciated!!!
sort
New contributor
I want to sort the following rows of text to a particular order. The sort
commands I am using is dropping the space and bundling all the lines together without the space separation and putting them in alphabetical order. Each block has 8 rows of line data each.
session:cabSessionID:052FPBP6Q6X2XGERWHBT
cabLoginID:053XCDTF8D4J6PD3BG8P
loginName:jack
userAgent:Mozilla/5.0
sessionStartTime:2018-10-01T01:04:10.899Z
memoryInfo:jsHeapSizeLimit:2217857988
totalJSHeapSize:42358792
usedJSHeapSize:36482584
session:cabSessionID:052FPBP6Q6X2XGERWHJE
cabLoginID:053XCDTF8D4J6PD3BG8P
loginName:jack
userAgent:Mozilla/5.0
sessionStartTime:2018-10-01T01:16:41.558Z
memoryInfo:jsHeapSizeLimit:2217857988
totalJSHeapSize:177754040
usedJSHeapSize:44842320
memoryInfo:jsHeapSizeLimit:2217857988
totalJSHeapSize:45252608
usedJSHeapSize:24555080
session:cabSessionID:055S75T4QC8JYC4Q0456
cabLoginID:053XCDTF8D4J6PD3BG8P
loginName:frank
userAgent:Mozilla/5.0
sessionStartTime:2018-10-23T19:11:11.871Z
I want the end result to be like this:
loginName:jack
cabLoginID:053XCDTF8D4J6PD3BG8P
session:cabSessionID:052FPBP6Q6X2XGERWHBT
userAgent:Mozilla/5.0
sessionStartTime:2018-10-01T01:04:10.899Z
memoryInfo:jsHeapSizeLimit:2217857988
totalJSHeapSize:42358792
usedJSHeapSize:36482584
loginName:jack
cabLoginID:053XCDTF8D4J6PD3BG8P
session:cabSessionID:052FPBP6Q6X2XGERWHJE
userAgent:Mozilla/5.0
sessionStartTime:2018-10-01T01:16:41.558Z
memoryInfo:jsHeapSizeLimit:2217857988
totalJSHeapSize:177754040
usedJSHeapSize:44842320
loginName:fred
cabLoginID:053XCDTF8D4J6PD3BG8P
session:cabSessionID:055S75T4QC8JYC4Q0456
userAgent:Mozilla/5.0
sessionStartTime:2018-10-23T19:11:11.871Z
memoryInfo:jsHeapSizeLimit:2217857988
totalJSHeapSize:45252608
usedJSHeapSize:24555080
Any help would be greatly appreciated!!!
sort
sort
New contributor
New contributor
edited 3 mins ago
New contributor
asked 8 mins ago
Kam
1
1
New contributor
New contributor
add a comment |Â
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Kam is a new contributor. Be nice, and check out our Code of Conduct.
Kam is a new contributor. Be nice, and check out our Code of Conduct.
Kam is a new contributor. Be nice, and check out our Code of Conduct.
Kam is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f477602%2fhow-to-sort-rows-in-a-specific-order-as-its-own-block-of-rows%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password