How to sort rows in a specific order as it's own block of rows

Multi tool use
Multi tool use

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite
1












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!!!









share









New contributor




Kam is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.























    up vote
    0
    down vote

    favorite
    1












    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!!!









    share









    New contributor




    Kam is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.





















      up vote
      0
      down vote

      favorite
      1









      up vote
      0
      down vote

      favorite
      1






      1





      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!!!









      share









      New contributor




      Kam is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      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





      share









      New contributor




      Kam is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.










      share









      New contributor




      Kam is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.








      share



      share








      edited 3 mins ago





















      New contributor




      Kam is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked 8 mins ago









      Kam

      1




      1




      New contributor




      Kam is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      Kam is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      Kam is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.

























          active

          oldest

          votes











          Your Answer







          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "106"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          convertImagesToLinks: false,
          noModals: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );






          Kam is a new contributor. Be nice, and check out our Code of Conduct.









           

          draft saved


          draft discarded


















          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



































          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.









           

          draft saved


          draft discarded


















          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.













           


          draft saved


          draft discarded














          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













































































          Wpf8Ci Hoe Dbe,1PeiXFtvIIGoq1YiMFbb 9IbMxqLoQZnG3CXWGBSOq6ud DGJxih,umqOWRyhkkH,o6qfRlfKRe
          2MxUC46Vwkbi,AOkx qKusJxHMGbWip3ixQaA9MG9GiYEq7,DXa8YQ2tbQpDOkZ,K

          Popular posts from this blog

          How to check contact read email or not when send email to Individual?

          How many registers does an x86_64 CPU actually have?

          Displaying single band from multi-band raster using QGIS