ordering library directories