Which source is consulted first for a new legal case?

The Mujtahid’s Duty: Evidence Hierarchy, Conflicts, and Revised Ijtihad