cancel
Showing results for 
Search instead for 
Did you mean: 

"order"

0 Votes

"order"

I think it would be most helpful to have the autoresponder "order" refer to the order in which I want to send the emails, not the order in which they were created.

7 Comments
Moderator

 Hi @JoelW075

Can you help me with an example of the emails in your account that are showing like this? I took a look and they seem to be in chronological order based on the day they will send out. 

Moderator
Status changed to: New
 
Moderator
Status changed to: New
 
Moderator
Status changed to: Voting Open
 
Member
The archive list always sorts by the date archived not the date sent. This should be an optional user parameter in the archiveList div. Another optional parameter that I'd really like to see would be to display the date sent in the archive list too.
Occasional Contributor

This will allow you to add a button to sort list. Boolean flag sets sort direction.

<script>

        function sortDevotionsList() {
             sortUnorderedList("archiveList", false);
        }
        function sortUnorderedList(ul, sortDescending) {

          if(typeof ul == "string")
            ul = document.getElementById(ul);

          // Idiot-proof, remove if you want
          if(!ul) {
            alert("The UL object is null!");
            return;
          }

          // Get the list items and setup an array for sorting
          var lis = ul.getElementsByTagName("LI");
          var vals = [];

          // Populate the array
          for(var i = 0, l = lis.length; i < l; i++)
            vals.push(lis[i].innerHTML);

          // Sort it
          vals.sort();

          // Sometimes you gotta DESC
          if(sortDescending)
            vals.reverse();

          // Change the list on the page
          for(var i = 0, l = lis.length; i < l; i++)
            lis[i].innerHTML = vals[i];
        }
    </script>

 

CTCT Employee
Status changed to: Closed - Not Enough Votes