Misallocation of resources in an economy makes firms less productive. I document the roles of heterogeneity, sorting, and complementarity in a framework where workers, managers, and firms interact to shape productivity. The approach I follow uses the movement of workers and managers across firms to identify the distribution of productivity. I webscraped novel microdata of crime reports from the Indian police department and combined them with the worker-level measurement of productivity. Using this data I show that the third source of heterogeneity in the form of manager ability is an important driver of differences in firm productivity. I empirically identify complementarities between workers, managers, and firms using my estimation methodology. Counterfactual results show that reallocating workers by applying a positive assortative sorting rule can increase police department productivity by 10%.