---
title: "Discussion on \"How to apply specific Sorting\" | Hashnode"
description: "Discussion on \"How to apply specific Sorting\". vector<int> salary = {100, 34, 90, 1, 14, 65, 22, 21, 90};\n\nQ: Sort this array in NON-decreasing order.A: using the in-built sort function we can write\n// we need to include bits/stdc++ library\nsort(v.begin(), v.end()); // {1, 14, 21, 22, 34, 65, 90,..."
url: "https://hashnode.com/posts/how-to-apply-specific-sorting/65b7e2e43aa2fa45db389637"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How to apply specific Sorting](https://mayank1728.hashnode.dev/how-to-apply-specific-sorting?utm_source=hashnode&utm_medium=feed)

vector<int> salary = {100, 34, 90, 1, 14, 65, 22, 21, 90}; Q: Sort this array in NON-decreasing order.A: using the in-built sort function we can write // we need to include bits/stdc++ library sort(v.begin(), v.end()); // {1, 14, 21, 22, 34, 65, 90,...

Jan 29, 2024 · 2 min read · mayank1728.hashnode.dev  
Read the article

## Written by

[Mayank Mudgal](https://hashnode.com/@Mayank1728)

@Mayank1728

  
[View profile](https://hashnode.com/@Mayank1728)

FrontEndDeveloper and reader!

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
