Added sort and shuffle methods