Add getting of classes by commit order