Stub DB sorting code