Finished implementing plugin sorting.