Sorting on nested elements

I suspect the issue is with your nested filter: you are using a term query on an analyzed field, so you are trying to find "Resistance" while the index probably contains "resistance" (lowercase). You should either make your componentProperties.name field not_analyzed (typically a good idea if it is an enum) or use a match query instead of a term query (typically a better idea if this is a full text field).