sort with JS img