Class Rank: is competitiveness of High School considered for merit aid

Is the class rank based on weighted or unweighted GPA? As I understand it a lot of schools look at unweighted GPA over weighted.