AbstractThis paper presents an efficient decoding method (namely SORTED decoding) for the de facto encoding in size optimization of trusses with automatic member grouping. The efficiency of the proposed method is evaluated through numerical experiments driven by two metaheuristic algorithms of different search mechanisms: Colliding Bodies Optimization and Jaya Algorithm. The first group of experiments show that the SORTED decoding method significantly outperforms the de facto and the two other decoding methods introduced in this study (ACCUMULATED and SORTED-ACCUMULATED) in terms of solution quality; moreover, the authors proved that the superiority of the SORTED decoding is not algorithm-dependent. Considerably better member-grouping configurations that provide up to 15% material economy are discovered for some of the well-known pre-grouped benchmark problems in the second group of experiments; surprisingly, the worst member-grouping configuration discovered by the SORTED decoding for one of the problems is better than that of the pre-grouped version.