A mild expression of astonishment, similar in meaning to "Well, that's interesting" or "Well DAMN!", but far far more amusing.
X: They're actually going to enforce the dress code now.
Y: *pauses* ...well doesn't that just take the biscuit.
po azbučnom redu