મફત ટેક્સ્ટ સોર્ટર

ટેક્સ્ટની લાઇનોને મૂળાક્ષર પ્રમાણે, લંબાઈ પ્રમાણે, નંબર પ્રમાણે અથવા રેન્ડમલી સોર્ટ કરો. ડુપ્લિકેટ દૂર કરો, વ્હાઇટસ્પેસ ટ્રિમ કરો અને લિસ્ટ શફલ કરો.

એક વાર લોડ થયા પછી ઑફલાઇન કામ કરે છે
ક્રમબદ્ધ · 0 લાઇન
ક્રમબદ્ધ આઉટપુટ અહીં દેખાશે…

આ કેવી રીતે કાર્ય કરે છે

Sorting JavaScript ના બિલ્ટ-ઇન Intl.Collator API વાપરીને સંપૂર્ણપણે તમારા બ્રાઉઝરમાં ચાલે છે — કોઈ સર્વર નહીં, કોઈ લાઇબ્રેરી નહીં, કોઈ upload નહીં. Alphabetical થી natural number sorting સુધીનો દરેક sort order તમે ટાઈપ કરો કે options બદલો ત્યારે તરત ગણવામાં આવે છે.

  1. 1
    Input lines માં split થાય છે
    તમારો પેસ્ટ કરેલો text newline characters પર split થાય છે. Optional pre-processing પહેલા ચાલે છે: દરેક line માંથી leading અને trailing whitespace trim થાય છે, અને ખાલી lines discard થાય છે — બંને configurable.
  2. 2
    Intl.Collator ordering હેન્ડલ કરે છે
    Alphabetical અને natural sorts માટે, બ્રાઉઝરનું બિલ્ટ-ઇન Intl.Collator તમારા વર્તમાન site locale સાથે initialize થાય છે તેથી accented characters (å, ä, ö, વગેરે) સાચા language order માં sort થાય. 'natural' મોડ numeric flag સેટ કરે છે, તેથી 'file2' 'file10' પહેલા rank થાય છે, digits ને plain characters તરીકે ગણવાને બદલે.
  3. 3
    Comparison keys noise strip કરે છે
    સરખામણી પહેલા, દરેક line ના sort key માંથી ઓપ્શનલી leading articles (the, a, an) અને non-alphanumeric punctuation દૂર થઈ શકે છે — original line text આઉટપુટમાં અકબંધ રહે છે, ફક્ત ordering માટે વપરાયેલી key બદલાય છે.
  4. 4
    Shuffle cryptographic randomness વાપરે છે
    Random shuffle mode random 32-bit integers નો array generate કરવા crypto.getRandomValues ને કૉલ કરે છે, પછી એ મૂલ્યો વાપરીને lines પર Fisher-Yates shuffle ચલાવે છે — Math.random()-આધારિત અભિગમો સાથે આવતા bias ને ટાળીને.

સંબંધિત સાધનો

વારંવાર પૂછાતા પ્રશ્નો