Skip to content

Conversation

@tukwan
Copy link
Member

@tukwan tukwan commented Dec 22, 2025

Sort source token files in sort-tokens script

Summary

Extends sort-tokens.ts to sort source files in addition to generated files.

Problem

The script only sorted generated files (evm.json, solana.json), leaving source files (evm/*.json, solana/*.json) unsorted. This caused inconsistent ordering and noisy diffs when adding new tokens.

Solution

Updated sort-tokens.ts to sort both:

  • Source files in evm/ and solana/ directories (raw token arrays)
  • Generated files in token-list/ (TokenList format)

The token-listing skill now includes just sort-tokens as an explicit step after inserting tokens.

Both use localeCompare for proper alphabetical ordering.

Reference

@tukwan tukwan changed the title ⏺ feat: sort source token files in sort-tokens script feat: sort source token files in sort-tokens script Dec 22, 2025
@tukwan tukwan force-pushed the feat/sort-tokens-locales branch from 73f269c to 3369989 Compare December 22, 2025 15:06
@tukwan tukwan force-pushed the feat/sort-tokens-locales branch 3 times, most recently from 70571c4 to 47490f5 Compare December 23, 2025 07:08
@tukwan tukwan force-pushed the feat/list-token-skills branch from feabf73 to eda0d86 Compare December 23, 2025 07:27
@tukwan tukwan force-pushed the feat/sort-tokens-locales branch from 47490f5 to 8249a70 Compare December 23, 2025 07:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants