Page 1 of 1

List Sorting By LIFO

PostPosted: Thu Dec 10, 2015 12:31 pm
by ajax1515
As the subject states, I'd like to be able to sort a list by timestamp of when the leads were actually added to the list. Regardless of Dial Count, Last Call Time, etc. I want the lead most recently added to the list to be the first one called.

Re: List Sorting By LIFO

PostPosted: Thu Dec 10, 2015 12:52 pm
by mflorell
That's just using the Campaign Lead Order of DOWN. Because the leads are added with an auto-incrementing lead_id, the leads loaded first will have lower lead_ids.

Re: List Sorting By LIFO

PostPosted: Fri Dec 11, 2015 3:48 pm
by ajax1515
I'm having trouble believing that it's that simple... but I'm having even more trouble thinking of an example where that wouldn't work for my situation... now I just feel dumb.

I guess the only follow up question would be to clarify that....is it a) constantly pulling records from the db in that order, or does it b) Sort the list once in that order, but you have to make it resort to preserve always dialing the newest leads

BTW, I wanted to thank you for all the work you've done with this software and how helpful you and other admins have been on these forums, you guys are great!

Re: List Sorting By LIFO

PostPosted: Fri Dec 11, 2015 4:04 pm
by mflorell
The hopper script always sorts leads as they are pulled to go into the hopper, and the campaign Lead Order field will determine how it sorts them. By default, the database will sort them by the order in which they were inserted, but it's not difficult to change that.

If you don't sort by DOWN or UP lead order, you can use the LEAD_ID(which is insertion order) as a Secondary Order for the campaign.

Glad we could be of some help :)