Since they are both rather informal expressions, I would expect both permutations to be acceptable. , ' And it may well vary from case to case . ' The most common context, however, is ' on a case-by-case basis '.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.