Sheets Mega Tools
Google Sheets™ में Sort by Color
Google Sheets™ selection में rows को cell background या text color के आधार पर reorder करें। Text To Table Converter के साथ related highlights को अपने आप साथ रखें।
Sort by Color तब data organize करने में मदद करता है जब आपने अलग-अलग colors से rows highlight की हों। Similar colors वाली rows को साथ group करें और चाहें तो अपने color scheme के लिए custom priority order भी set करें।
Sort by Color का उपयोग कैसे करें
- अपनी range चुनें
जिन rows को sort करना है उन्हें highlight करें। यह tool केवल current selection पर काम करता है (panel में helper text दिखाई देता है)।
Caution: Selection में merged cells नहीं होनी चाहिए। अगर selection में merged cells हैं, तो पहले उन्हें unmerge करने के लिए कहा जाएगा।
- Tool खोलें
Add-on sidebar खोलें, Sheets Mega Tools expand करें, Rows & Columns में जाएँ, और Sort by Color पर क्लिक करें।
आप इसी sidebar section को खोलने के लिए Sheets Mega Tools menu shortcut का भी उपयोग कर सकते हैं।
- Sort options configure करें
Options panel expand करने के लिए caret button पर क्लिक करें:
Color Basis:
- Background (default) - Cell background color के आधार पर sort करें
- Text - Cell text color के आधार पर sort करें
Sort Order:
- Auto (default) - Colors उसी क्रम में आती हैं जिस क्रम में वे data में पहली बार दिखाई देती हैं
- Custom priority - Color pickers की मदद से specific color order तय करें (जो colors list में नहीं हैं वे custom list के बाद आएँगी)
Additional Options:
- Blanks last - बिना color वाली cells को नीचे ले जाएँ (default: off)
- Secondary sort - जिन rows का color एक जैसा हो, उन्हें text content के पहले character के आधार पर alphabetically A→Z sort करें (सिर्फ ties के लिए)
- Sort चलाएँ
अपनी configured options के आधार पर rows reorder करने के लिए Sort selection पर क्लिक करें।
- Status message review करें
Sorting के बाद status message यह confirm करता है:
- कौन सा color basis उपयोग हुआ (Background या Text)
- कौन सा sort order लागू हुआ (Auto या Custom)
- कितनी rows sort हुईं
यह कैसे काम करता है
Row Reordering
- Rows को आपकी selection की first column के color के आधार पर reorder किया जाता है
- पूरी row साथ move होती है, इसलिए सारा data सुरक्षित रहता है
- Selection का shape सुरक्षित रहता है (पहले और बाद में dimensions समान रहती हैं)
Color Sorting Logic
Auto Order (Default):
- Colors उसी क्रम में sort होती हैं जिस क्रम में वे data में पहली बार दिखाई देती हैं
- Example: अगर Red पहले दिखाई दे, फिर Blue, फिर Green, तो यही sort order होगा
Custom Priority:
- Color pickers की मदद से specific colors तय करें (जैसे Red → Yellow → Green)
- आपकी list से match करने वाली colors आपके तय order में sort होती हैं
- जो colors list में नहीं हैं वे prioritized colors के बाद आती हैं
- Blank (no color) cells को "Blanks last" toggle से नीचे भेजा जा सकता है
Secondary Sort
जब कई rows का color एक जैसा हो:
- Rows को उनके text content के पहले character के आधार पर alphabetically A→Z sort किया जाता है
- Sorting case-insensitive होती है
- यह केवल तब लागू होता है जब "ties" हों (एक जैसी colors वाली multiple rows)
Data Preservation
Sort operation यह सब preserve करती है:
- ✅ Cell values (numbers, text, dates)
- ✅ Cell formulas (functions remain intact)
- ✅ Cell notes/comments
- ✅ Background colors
- ✅ Font colors
- ✅ Cell formatting
Use Cases
- Priority tracking - Tasks को color-coded priority के आधार पर group करें (Red = Urgent, Yellow = Medium, Green = Low)
- Status visualization - Items को status colors के आधार पर organize करें (Red = Blocked, Yellow = In Progress, Green = Complete)
- Category grouping - Manual highlighting के बाद data को color-coded categories के आधार पर sort करें
- Quality control - Review status colors के आधार पर items group करें
- Project management - Tasks को color-coded project phase या team के आधार पर organize करें
- Data analysis - Conditional formatting या manual review से आए color highlights के आधार पर rows group करें
Examples
Example 1: Auto Order (Default)
आपके data में highlighted rows हैं:
- Row 5: Red
- Row 3: Blue
- Row 7: Red
- Row 2: Green
- Row 8: Blue
Auto order के साथ sorting के बाद:
- Red वाली rows (पहला दिखाई देने वाला color)
- Blue वाली rows (दूसरा दिखाई देने वाला color)
- Green वाली rows (तीसरा दिखाई देने वाला color)
उदाहरण 2: Custom priority
आप priority define करते हैं: Green → Yellow → Red
आपके data में rows हैं: Red, Blue, Yellow, Green, Purple
Sorting के बाद:
- Green rows (आपकी custom priority में 1st)
- Yellow rows (आपकी custom priority में 2nd)
- Red rows (आपकी custom priority में 3rd)
- Blue और Purple rows (custom list में नहीं, इसलिए बाद में आती हैं)
Example 3: Secondary Sort के साथ
कई rows का background Red है:
- "Zebra" (Red)
- "Apple" (Red)
- "Mango" (Red)
Secondary sort enable होने के बाद:
- "Apple" (Red, A→Z sort)
- "Mango" (Red, A→Z sort)
- "Zebra" (Red, A→Z sort)
Important Notes
Scope Limitation
Operation को predictable और safe रखने के लिए sorting selected range तक सीमित है। अगर आपको पूरी sheet sort करनी है, तो Google Sheets™ का built-in Data → Sort range feature उपयोग करें।
Merged Cells
यह tool merged cells वाली selections स्वीकार नहीं करता। अगर आपकी selection में merged cells हैं:
- Unmerge the cells first (Format → Merge cells → Unmerge)
- Run the sort
- ज़रूरत हो तो बाद में फिर से merge करें
Undo Support
Sort operation Sheets API का उपयोग करती है, जिसका मतलब है:
- ✅ You can undo the sort with Ctrl+Z (Cmd+Z on Mac)
- ✅ Operation आपकी sheet की edit history में दिखाई देता है
- ✅ ज़रूरत पड़ने पर revert करने के लिए original data सुरक्षित रहता है
Performance
बहुत बड़ी selections (10,000+ rows) के लिए sort में कुछ समय लग सकता है। Processing के दौरान tool loading indicator दिखाएगा।
Tip: जब आप color-coded data के साथ काम कर रहे हों, तो comprehensive data organization के लिए Sort by Color को Find Duplicate Rows या Cell Value Heatmap के साथ उपयोग करने पर विचार करें।
Note: यह tool Sheets Mega Tools का हिस्सा है और केवल Google Sheets™ में उपलब्ध है। यह built-in sort features को color-based organization capabilities जोड़कर complement करता है।