Sort tickets in queue by email

Hello,

I set replay address and comment address for a queue. All tickets sent to
this address I want to be inserted in that queue, but the system try to
create the ticket in General queue.

I need some advice, how can I sort the ticket in queue by address specified
for that queue.

Thank you!