Adding external sort