Bonus Tickets and Alphabetical Use ?

For discussion of the Poker Mavens server module and other administration topics
Post Reply
Tuck Fheman
Posts: 213
Joined: Tue Jul 04, 2017 6:44 am

Bonus Tickets and Alphabetical Use ?

Post by Tuck Fheman »

If a player has multiple tickets that start with the designated prefix, the first one found alphabetically will be used
Can you please clarify for me how this will work if a player has two tickets with the same prefix ... one is BONUS100 and one is BONUS500.

I assume BONUS100 will be used first and then BONUS500, then BONUS1000, etc. Correct?

Thanks and sorry I'm stupid. ;)
Kent Briggs
Site Admin
Posts: 5878
Joined: Wed Mar 19, 2008 8:47 pm

Re: Bonus Tickets and Alphabetical Use ?

Post by Kent Briggs »

Tuck Fheman wrote:I assume BONUS100 will be used first and then BONUS500, then BONUS1000, etc. Correct?
No, those three would sort in ascending order as follows:

BONUS100
BONUS1000
BONUS500

Because alphabetical sorting is character by character. If you want numeric sorting, insert some leading zeros:

BONUS0100
BONUS0500
BONUS1000
Tuck Fheman
Posts: 213
Joined: Tue Jul 04, 2017 6:44 am

Re: Bonus Tickets and Alphabetical Use ?

Post by Tuck Fheman »

Thanks!
Post Reply