The first chapter studies the role of search frictions and preference shocks and how they lead to sorting heterogeneous agents in the labor market. I develop a stochastic sorting framework where the equilibrium exhibits sorting across types. This feature helps to understand empirical labor market trends, such as mismatch and wage inequality. In particular, I find that differences in productivity, entry cost, market noise, and unemployment benefits have contributed to changes in observed sorting patterns and income inequality in the U.S. labor market.In the second chapter, I examine the role of various skill levels in a frictional labor market with heterogeneous workers and firms. The economy consists of workers with different skill levels a...