g and h sorting 600×600