After seeing a basic approach to sort arrays of ObjectIds using LINQ – and then refactoring that to be a shared extension method to be used on arrays of ObjectIds – today we’re going to see that code refactored, once again, to work with types of data other than strings (up until now we could only sort objects based on string properties such as class and layer names). One solid approach for creating operations that can deal with different types of object – while maintaining type safety – is to use template classes, which are known as generic classes... Read more →