More support for matrices, sorting of methods