I have the following code:
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>StackOverflow Question</title>
    <style>
    .container--wrap {
        background-color: #000000;
        border-radius: 15px;
        margin: 5px;
        overflow: hidden;
        justify-content: stretch;
        align-items: flex-end;
    }
    .scroller2{
        height: 250px;
        overflow-y: scroll;
    }
    .circle {
      position: relative;
      margin-bottom: 40px;
      height: 20px;
      display: flex;
      align-items: center;
    }
    .circle::before {
      content:"";
      display: inline-block;
      width: 20px;
      height: 20px;
      border-radius: 50%;
      margin-right: 5px;
    }
    .circle::after {
      position: absolute;
      content: '';
      left: 7.5px;
      top: 20px;
      width: 5px;
      background: #4d4d4d;
      height: 40px;
    }
    .minor::before {
      background-color: purple;
    }
    .major::before {
      background-color: red;
    }
    .gray::before {
      background-color: gray;
    }
    .tlbtn {
      background-color: #343434;
      border-radius: 10px;
      color: white;
      padding: 10px 20px;
      text-align: center;
      text-decoration: none;
      display: inline-block;
      font-size: 16px;
      margin: 4px 2px;
      cursor: pointer;
      font-family: robotobold;
    }
    #tltitle,.tlbtn{
      display: inline-flex;
    }
    </style>
</head>
<body>
    <script>
    function btn1Click() {
        document.getElementById("btn1").style.backgroundColor="#5c5c5c";
        document.getElementById("btn2").style.backgroundColor="#343434";
    }
    function btn2Click() {
        document.getElementById("btn2").style.backgroundColor="#5c5c5c";
        document.getElementById("btn1").style.backgroundColor="#343434";
    }
    </script>
    <div class="container--wrap-scroll scroller2" id="timeline">
        <p id="tltitle" style="color: #D4E1E4; font-size: 20px; text-align: left; padding-top: 0px; padding-right: 10px;color: black;"><b>Timeline</b></p>
        <div id="btn1" class="tlbtn" style="margin-bottom: -10px; background-color: #5c5c5c;" onclick="btn1Click();"><text style="font-size: 15px; font-family: robotobold;text-align: center;">Newest</text></div>
        <div id="btn2" class="tlbtn" style="margin-bottom: -10px;" onclick="btn2Click();"><text style="font-size: 15px; font-family: robotobold; text-align: center;">Oldest</text></div>
        <div class="circle major "><text style="color:red; font-family:robotolight; font-size: 12px;">Major Event | Yesterday</text></div>
        <div class="circle gray"><text style="color:black; font-family:robotolight; font-size: 12px;">Information | 2 days ago</text></div>
        <div class="circle gray"><text style="color:black; font-family:robotolight; font-size: 12px;">Information | 1 week ago</text></div>
        <div class="circle minor"><text style="color:purple; font-family:robotolight; font-size: 12px;">Minor Event | 1 month ago</b></text></div>
    </div>
</body>
</html>When 'Oldest' is pressed, I would like the order of the div elements to reverse sort - please notice that the last circle has a line which goes below it, and I would like this to stay the same:
e.g. Major Event will be at the bottom when OLDEST is pressed and have a grey line below it as well.
Is there a way I can do this?
Screenshot:

 
     
    