A microfluidic device (100) comprising at least one sheath fluid inlet channel (1, 2) and one sample fluid inlet channel (3), at least two outlet channels (11, 12, 13) and a common channel (4) arranged between said inlet channels (1, 2, 3) and said outlet channels (11, 12, 13), the common channel (4) being fluidically connected to said inlet and outlet channels (1, 2, 3, 11, 12, 13), the sample fluid inlet channel (3) being adapted to inject a sample fluid (20) into the common channel (4), the at least one sheath fluid inlet channel (1, 2) being adapted to inject at least one sheath fluid (21, 22) into the common channel (4) so as to allow a hydrodynamic focusing of the sample fluid (20) into the common channel (4), the common channel (4) being configured to guide the hydrodynamically focused sample fluid (20) and the at least one sheath fluid (21, 22) towards said at least two outlet channels (11, 12, 13), wherein the microfluidic device includes heating means comprising a power source (40) and at least one transducer, the heating means being arranged to transmit over a short duration an amount of heat localised in said at least one sheath fluid (21, 22) flow in the common channel (4) upstream of a junction between said at least two outlet channels (11, 12, 13), the heating means being adapted to heat locally said at least one sheath fluid (21, 22) flow in the common channel (4) and in that said at least one sheath fluid shows a thermal variation of viscosity adapted to selectively deflect or extract a portion (120, 130, 220) of the sample fluid towards an outlet channel determined among the at least two outlet channels (11, 12, 13).