In this computational work we explore metal-organic frameworks (MOFs) for separating alkanes according to the degree of branching. We show that the structure MOF-1 shows an adsorption hierarchy for a 13-component light naphtha mixture precisely as desired for increasing the research octane number of gasoline. In addition we report an unusual molecular-level segregation of molecules based on their degree of branching.