Thanks! I tried to create a deck without using the second filter, but instead used a query deck:foo (is:learn OR is:review), and set order to “increasing intervals”, and it worked - it always gather all the learning cards, then due cards.
Happy cake day btw! Surprised to see your account is only 3 years old.