Initial sorting added